forked from premiere/premiere-libtorrent
merged DHT update of /8 blocks form RC_1_0
This commit is contained in:
parent
7a3cabfe12
commit
f85d62b601
|
@ -347,7 +347,7 @@ namespace libtorrent { namespace dht
|
|||
// these are class A networks not available to the public
|
||||
// if we receive messages from here, that seems suspicious
|
||||
boost::uint8_t class_a[] = { 3, 6, 7, 9, 11, 19, 21, 22, 25
|
||||
, 26, 28, 29, 30, 33, 34, 45, 48, 51, 52, 56, 102, 104 };
|
||||
, 26, 28, 29, 30, 33, 34, 48, 51, 56 };
|
||||
|
||||
int num = sizeof(class_a)/sizeof(class_a[0]);
|
||||
if (std::find(class_a, class_a + num, b[0]) != class_a + num)
|
||||
|
|
Loading…
Reference in New Issue