summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-28 11:08:15 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-28 11:08:15 -0700
commit0034efafe4f141d06d07464e7df2e151f4304294 (patch)
treef53cf164ab8ef22569800a3c1b0e5a6521427e40
parent0fd15d9cf3a7bf6e85247533e83edade69cd01d0 (diff)
downloadinfinitytier-0034efafe4f141d06d07464e7df2e151f4304294.tar.gz
infinitytier-0034efafe4f141d06d07464e7df2e151f4304294.zip
On semi-undocumented test net, assign a RFC4193 IPv6 address too. Will be useful for our at-scale tests.
-rw-r--r--node/NetworkConfig.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/node/NetworkConfig.cpp b/node/NetworkConfig.cpp
index cd32600f..35e23837 100644
--- a/node/NetworkConfig.cpp
+++ b/node/NetworkConfig.cpp
@@ -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;
}