mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
Merge branch 'dev' into ldr/update-rust-deps
This commit is contained in:
commit
859031dcd9
1 changed files with 13 additions and 0 deletions
|
@ -132,7 +132,20 @@ InetAddress::IpScope InetAddress::ipScope() const
|
||||||
return IP_SCOPE_PRIVATE; // fc00::/7
|
return IP_SCOPE_PRIVATE; // fc00::/7
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// :::ffff:127.0.0.1
|
||||||
|
// 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff, 0x7f, 0, 0, 1
|
||||||
unsigned int k = 0;
|
unsigned int k = 0;
|
||||||
|
while ((!ip[k])&&(k < 9)) {
|
||||||
|
++k;
|
||||||
|
}
|
||||||
|
if (k == 9) {
|
||||||
|
if (ip[10] == 0xff && ip[11] == 0xff && ip[12] == 0x7f) {
|
||||||
|
return IP_SCOPE_LOOPBACK;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
k = 0;
|
||||||
while ((!ip[k])&&(k < 15)) {
|
while ((!ip[k])&&(k < 15)) {
|
||||||
++k;
|
++k;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue