diff options
author | luigi1111 <luigi1111w@gmail.com> | 2018-06-20 14:22:44 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2018-06-20 14:22:44 -0500 |
commit | c678413a890851c12285cce71509573f9730071b (patch) | |
tree | 1f276c7aa74c6177e0f52df7335162c2e2e4266d /contrib | |
parent | Merge pull request #3897 (diff) | |
parent | unit_tests: add tests for local IP range detection (diff) | |
download | monero-c678413a890851c12285cce71509573f9730071b.tar.xz |
Merge pull request #3902
f8dd433 epee: fix detection of 172.16.0.0/172.31.255.255 local IP range (moneromooo-monero)
5db9e3c unit_tests: add tests for local IP range detection (moneromooo-monero)
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/epee/include/net/local_ip.h | 2 |
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; } |