From: Loic Blot Date: Sun, 15 Feb 2015 11:20:32 +0000 (+0100) Subject: Only do the IPv6 unit test if IPv6 is enabled X-Git-Tag: 0.4.13~612 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3b6b9435c5692eb56838867e184e59dbe4f6b5c0;p=oweals%2Fminetest.git Only do the IPv6 unit test if IPv6 is enabled --- 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)) {