summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/network.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/network.c b/toxcore/network.c
index 5ab480b7..c6cf6ed4 100644
--- a/toxcore/network.c
+++ b/toxcore/network.c
@@ -970,9 +970,9 @@ int addr_resolve(const char *address, IP *to, IP *extra)
970 } 970 }
971 971
972 IP ip4; 972 IP ip4;
973 ip_init(&ip4, /* ipv6? */ false); 973 ip_init(&ip4, 0); // ipv6enabled = 0
974 IP ip6; 974 IP ip6;
975 ip_init(&ip6, /* ipv6? */ true); 975 ip_init(&ip6, 1); // ipv6enabled = 1
976 976
977 for (walker = server; (walker != NULL) && !done; walker = walker->ai_next) { 977 for (walker = server; (walker != NULL) && !done; walker = walker->ai_next) {
978 switch (walker->ai_family) { 978 switch (walker->ai_family) {