mirror of
https://github.com/monero-project/monero.git
synced 2026-07-30 23:50:24 -07:00
Merge pull request #3902
f8dd433epee: fix detection of 172.16.0.0/172.31.255.255 local IP range (moneromooo-monero)5db9e3cunit_tests: add tests for local IP range detection (moneromooo-monero)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user