From 1883a8c9ee802300c5d0fce5daa92e5bd08a4bee Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Wed, 16 Sep 2020 10:15:42 -0700 Subject: [PATCH] Set 198.18.0.0/15 to IP_SCOPE_PRIVATE --- node/InetAddress.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/node/InetAddress.cpp b/node/InetAddress.cpp index bca97ad2f..58fa0ba9d 100644 --- a/node/InetAddress.cpp +++ b/node/InetAddress.cpp @@ -60,6 +60,9 @@ InetAddress::IpScope InetAddress::ipScope() const case 0xc0: if ((ip & 0xffff0000) == 0xc0a80000) return IP_SCOPE_PRIVATE; // 192.168.0.0/16 break; + case 0xc6: + if ((ip & 0xfffe0000) == 0xc6120000) return IP_SCOPE_PRIVATE; // 198.18.0.0/15 + break; case 0xff: return IP_SCOPE_NONE; // 255.0.0.0/8 (broadcast, or unused/unusable) } switch(ip >> 28) {