mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
Set 198.18.0.0/15 to IP_SCOPE_PRIVATE
This commit is contained in:
parent
83d92858c1
commit
1883a8c9ee
1 changed files with 3 additions and 0 deletions
|
@ -60,6 +60,9 @@ InetAddress::IpScope InetAddress::ipScope() const
|
||||||
case 0xc0:
|
case 0xc0:
|
||||||
if ((ip & 0xffff0000) == 0xc0a80000) return IP_SCOPE_PRIVATE; // 192.168.0.0/16
|
if ((ip & 0xffff0000) == 0xc0a80000) return IP_SCOPE_PRIVATE; // 192.168.0.0/16
|
||||||
break;
|
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)
|
case 0xff: return IP_SCOPE_NONE; // 255.0.0.0/8 (broadcast, or unused/unusable)
|
||||||
}
|
}
|
||||||
switch(ip >> 28) {
|
switch(ip >> 28) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue