epee: fix detection of 172.16.0.0/172.31.255.255 local IP range

pull/88/head
moneromooo-monero 6 years ago
parent 740085271b
commit 1d3874dabf
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -48,7 +48,7 @@ namespace epee
if( (ip | 0xffffff00) == 0xffffffac)
{
uint32_t second_num = (ip << 8) & 0xff000000;
uint32_t second_num = (ip >> 8) & 0xff;
if(second_num >= 16 && second_num <= 31 )
return true;
}

Loading…
Cancel
Save