mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 10:37:37 -07:00
epee: fix detection of 172.16.0.0/172.31.255.255 local IP range
This commit is contained in:
parent
8a7b3ff138
commit
f8dd433110
@ -48,7 +48,7 @@ namespace epee
|
|||||||
|
|
||||||
if( (ip | 0xffffff00) == 0xffffffac)
|
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 )
|
if(second_num >= 16 && second_num <= 31 )
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user