1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-17 14:55:13 -05:00

Only do the IPv6 unit test if IPv6 is enabled

This commit is contained in:
Loic Blot 2015-02-15 12:20:32 +01:00
parent 5eb0eda626
commit 3b6b9435c5

View 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)) {