Only do the IPv6 unit test if IPv6 is enabled
authorLoic Blot <loic.blot@unix-experience.fr>
Sun, 15 Feb 2015 11:20:32 +0000 (12:20 +0100)
committerLoic Blot <loic.blot@unix-experience.fr>
Sun, 15 Feb 2015 11:20:37 +0000 (12:20 +0100)
src/test.cpp

index b4158f241f15af041f3a51f2d86e3436d42604f0..5d6fdd2d8248ca06a26f40f6efa637abb9e3c426 100644 (file)
@@ -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)) {