mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-14 13:18:21 +00:00
Allow trusted paths over global IPs for legacy config format too.
This commit is contained in:
@ -585,7 +585,7 @@ public:
|
|||||||
} else break;
|
} else break;
|
||||||
++fno;
|
++fno;
|
||||||
}
|
}
|
||||||
if ( (trustedPathId != 0) && ((trustedPathNetwork.ss_family == AF_INET)||(trustedPathNetwork.ss_family == AF_INET6)) && (trustedPathNetwork.ipScope() != InetAddress::IP_SCOPE_GLOBAL) && (trustedPathNetwork.netmaskBits() > 0) ) {
|
if ( (trustedPathId != 0) && ((trustedPathNetwork.ss_family == AF_INET)||(trustedPathNetwork.ss_family == AF_INET6)) && (trustedPathNetwork.netmaskBits() > 0) ) {
|
||||||
ppc[trustedPathNetwork].trustedPathId = trustedPathId;
|
ppc[trustedPathNetwork].trustedPathId = trustedPathId;
|
||||||
ppc[trustedPathNetwork].mtu = 0; // use default
|
ppc[trustedPathNetwork].mtu = 0; // use default
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user