summaryrefslogtreecommitdiff
path: root/node/InetAddress.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2018-03-29 10:44:57 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2018-03-29 10:44:57 -0700
commit40a9ebd07854e5ce07b0d70a5a778399c036b0e5 (patch)
treea10fc9e3952c479a0ec4dd23be94da906d4c0878 /node/InetAddress.cpp
parent8c1b73b29c487c5bd1f0be981729f5e6001e60c3 (diff)
downloadinfinitytier-40a9ebd07854e5ce07b0d70a5a778399c036b0e5.tar.gz
infinitytier-40a9ebd07854e5ce07b0d70a5a778399c036b0e5.zip
GitHub issue #675
Diffstat (limited to 'node/InetAddress.cpp')
-rw-r--r--node/InetAddress.cpp4
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) {