From 3b6b9435c5692eb56838867e184e59dbe4f6b5c0 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Sun, 15 Feb 2015 12:20:32 +0100 Subject: [PATCH] Only do the IPv6 unit test if IPv6 is enabled --- src/test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test.cpp b/src/test.cpp index b4158f241..5d6fdd2d8 100644 --- a/src/test.cpp +++ b/src/test.cpp @@ -1673,7 +1673,7 @@ struct TestSocket: public TestBase Address address6((IPv6AddressBytes*) NULL, port); // IPv6 socket test - { + if (g_settings->getBool("enable_ipv6")) { UDPSocket socket6; if (!socket6.init(true, true)) {