diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2018-03-29 10:44:57 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2018-03-29 10:44:57 -0700 |
commit | 40a9ebd07854e5ce07b0d70a5a778399c036b0e5 (patch) | |
tree | a10fc9e3952c479a0ec4dd23be94da906d4c0878 /node/InetAddress.cpp | |
parent | 8c1b73b29c487c5bd1f0be981729f5e6001e60c3 (diff) | |
download | infinitytier-40a9ebd07854e5ce07b0d70a5a778399c036b0e5.tar.gz infinitytier-40a9ebd07854e5ce07b0d70a5a778399c036b0e5.zip |
GitHub issue #675
Diffstat (limited to 'node/InetAddress.cpp')
-rw-r--r-- | node/InetAddress.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/InetAddress.cpp b/node/InetAddress.cpp index ecfc81ab..36b4e434 100644 --- a/node/InetAddress.cpp +++ b/node/InetAddress.cpp @@ -62,7 +62,7 @@ InetAddress::IpScope InetAddress::ipScope() const case 0x37: return IP_SCOPE_PSEUDOPRIVATE; // 55.0.0.0/8 (US DoD) case 0x38: return IP_SCOPE_PSEUDOPRIVATE; // 56.0.0.0/8 (US Postal Service) case 0x64: - if ((ip & 0xffc00000) == 0x64400000) return IP_SCOPE_SHARED; // 100.64.0.0/10 + if ((ip & 0xffc00000) == 0x64400000) return IP_SCOPE_PRIVATE; // 100.64.0.0/10 break; case 0x7f: return IP_SCOPE_LOOPBACK; // 127.0.0.0/8 case 0xa9: @@ -294,7 +294,7 @@ bool InetAddress::isEqualPrefix(const InetAddress &addr) const } return false; } - + bool InetAddress::containsAddress(const InetAddress &addr) const { if (addr.ss_family == ss_family) { |