From a76552ce47c472e29d93b8126376dad878303faf Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Fri, 20 Jul 2012 12:20:37 +0200 Subject: do not use external IPv4 discovery, when -onlynet="IPv6" --- src/net.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3