aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-02-15 12:20:32 +0100
committerLoic Blot <loic.blot@unix-experience.fr>2015-02-15 12:20:37 +0100
commit3b6b9435c5692eb56838867e184e59dbe4f6b5c0 (patch)
treed1e1cca722b27cdf9f130bd013d5344a096013b2
parent5eb0eda626942882fa9ac4e040da51c644a2bbbd (diff)
downloadminetest-3b6b9435c5692eb56838867e184e59dbe4f6b5c0.tar.gz
minetest-3b6b9435c5692eb56838867e184e59dbe4f6b5c0.tar.bz2
minetest-3b6b9435c5692eb56838867e184e59dbe4f6b5c0.zip
Only do the IPv6 unit test if IPv6 is enabled
-rw-r--r--src/test.cpp2
1 files changed, 1 insertions, 1 deletions
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)) {