Skip to content

Commit

Permalink
epee: fix detection of 172.16.0.0/172.31.255.255 local IP range
Browse files Browse the repository at this point in the history
  • Loading branch information
moneromooo-monero committed Jul 3, 2018
1 parent 7400852 commit 1d3874d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/epee/include/net/local_ip.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1d3874d

Please sign in to comment.