mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-22 20:44:56 +00:00
increase dht flood protection to 1000 packets / 5 sec.
which threshold is good remains to be decided, for now i just don't want an additional source of problems (banning legit peers).
This commit is contained in:
parent
e5b21d6810
commit
f39df114d1
@ -492,7 +492,7 @@ namespace libtorrent { namespace dht
|
||||
if (match)
|
||||
{
|
||||
++match->count;
|
||||
if (match->count >= 200)
|
||||
if (match->count >= 1000)
|
||||
{
|
||||
if (now < match->limit)
|
||||
{
|
||||
@ -504,7 +504,7 @@ namespace libtorrent { namespace dht
|
||||
<< " count: " << match->count << " ]";
|
||||
}
|
||||
#endif
|
||||
if (match->count == 200)
|
||||
if (match->count == 1000)
|
||||
{
|
||||
printf(" BANNING PEER [ ip: %s:%d ] time: %.3f ]\n",
|
||||
ep.address().to_string().c_str(), ep.port(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user