diff options
author | Philip Kaufmann <phil.kaufmann@t-online.de> | 2012-07-20 12:20:37 +0200 |
---|---|---|
committer | Philip Kaufmann <phil.kaufmann@t-online.de> | 2012-07-20 13:23:02 +0200 |
commit | a76552ce47c472e29d93b8126376dad878303faf (patch) | |
tree | 50c845fe4a359487c19821a9e5d176272a739e47 /src/net.cpp | |
parent | 134cb634b1d0b117291f33c0c80202157462797f (diff) |
do not use external IPv4 discovery, when -onlynet="IPv6"
Diffstat (limited to 'src/net.cpp')
-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) |