I have not tested this, I have simply attempted to adapt Pimenov's code with poy's comments (it does compile).
** Patch added: "dcpp_ctm2hub.diff" https://bugs.launchpad.net/dcplusplus/+bug/1419478/+attachment/4331298/+files/dcpp_ctm2hub.diff ** Changed in: dcplusplus Importance: High => Critical -- You received this bug notification because you are a member of Dcplusplus-team, which is subscribed to DC++. https://bugs.launchpad.net/bugs/1419478 Title: Mitigating classic NMDC CTM DOS attacks Status in DC++: Confirmed Bug description: Proposal and discussion log from the public hub : http://pastebin.com/dMY5eaRP To manage notifications about this bug go to: https://bugs.launchpad.net/dcplusplus/+bug/1419478/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~linuxdcpp-team Post to : linuxdcpp-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~linuxdcpp-team More help : https://help.launchpad.net/ListHelp