diff options
author | Gregory Maxwell <greg@xiph.org> | 2012-07-25 11:11:25 -0700 |
---|---|---|
committer | Gregory Maxwell <greg@xiph.org> | 2012-07-25 11:11:25 -0700 |
commit | f00ffc6c00cf371bc41803c0795c3dcd7e300bfd (patch) | |
tree | 56b4fae74598408091cfdb1cf6cb0b2c6dcf99b2 /src | |
parent | f5a3dbea4095c6aba54bfcba37c8cf8f544b1638 (diff) | |
parent | a76552ce47c472e29d93b8126376dad878303faf (diff) |
Merge pull request #1615 from Diapolo/net_noExtIp_IPv6only
do not use external IPv4 discovery, when -onlynet="IPv6"
Diffstat (limited to 'src')
-rw-r--r-- | src/net.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp index f3c255c308..08f47ae62f 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1878,7 +1878,9 @@ void static Discover() } #endif - CreateThread(ThreadGetMyExternalIP, NULL); + // Don't use external IPv4 discovery, when -onlynet="IPv6" + if (!IsLimited(NET_IPV4)) + CreateThread(ThreadGetMyExternalIP, NULL); } void StartNode(void* parg) |