merged changes from RC_1_0
This commit is contained in:
parent
0ed0bdc50c
commit
7830081585
|
@ -114,6 +114,8 @@
|
||||||
|
|
||||||
0.16.18 release
|
0.16.18 release
|
||||||
|
|
||||||
|
* fix uninitialized values in DHT DOS mitigation
|
||||||
|
* fix error handling in file::phys_offset
|
||||||
* fix bug in HTTP scrape response parsing
|
* fix bug in HTTP scrape response parsing
|
||||||
* enable TCP keepalive for socks5 connection for UDP associate
|
* enable TCP keepalive for socks5 connection for UDP associate
|
||||||
* fix python3 support
|
* fix python3 support
|
||||||
|
|
|
@ -43,7 +43,14 @@ namespace libtorrent { namespace dht
|
||||||
TORRENT_DECLARE_LOG(dht_tracker);
|
TORRENT_DECLARE_LOG(dht_tracker);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
dos_blocker::dos_blocker() {}
|
dos_blocker::dos_blocker()
|
||||||
|
{
|
||||||
|
for (int i = 0; i < num_ban_nodes; ++i)
|
||||||
|
{
|
||||||
|
m_ban_nodes[i].count = 0;
|
||||||
|
m_ban_nodes[i].limit = min_time();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool dos_blocker::incoming(address addr, ptime now)
|
bool dos_blocker::incoming(address addr, ptime now)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue