aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-06-01 21:09:46 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-06-01 21:47:21 +0100
commitf8dd43311078b92f4601565ae45441cfd01c82ad (patch)
tree2a53d7912b635bbd5596578357a548dd493e0fa8
parentMerge pull request #3866 (diff)
downloadmonero-f8dd43311078b92f4601565ae45441cfd01c82ad.tar.xz
epee: fix detection of 172.16.0.0/172.31.255.255 local IP range
-rw-r--r--contrib/epee/include/net/local_ip.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/epee/include/net/local_ip.h b/contrib/epee/include/net/local_ip.h
index 0d458963c..52c5855b9 100644
--- a/contrib/epee/include/net/local_ip.h
+++ b/contrib/epee/include/net/local_ip.h
@@ -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;
}