mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-20 17:52:46 +00:00
On semi-undocumented test net, assign a RFC4193 IPv6 address too. Will be useful for our at-scale tests.
This commit is contained in:
parent
0fd15d9cf3
commit
0034efafe4
@ -55,6 +55,9 @@ SharedPtr<NetworkConfig> NetworkConfig::createTestNetworkConfig(const Address &s
|
||||
if ((ip & 0x000000ff) == 0x00000000) ip ^= 0x00000001; // or .0
|
||||
nc->_staticIps.push_back(InetAddress(Utils::hton(ip),8));
|
||||
|
||||
// Assign an RFC4193-compliant IPv6 address -- will never collide
|
||||
nc->_staticIps.push_back(InetAddress::makeIpv6rfc4193(ZT_TEST_NETWORK_ID,self.toInt()));
|
||||
|
||||
return nc;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user