summarylogtreecommitdiffstats
path: root/ipv6.patch
blob: 5c2e2b9d293cb1467b5c0bb73b8281aa2be0bd15 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- src/resolv.c
+++ src/resolv.c.mod
@@ -84,7 +84,7 @@ static struct sockaddr *choose_any(struct ResolvQuery *);
 
 int resolv_init(struct ev_loop *loop, char **nameservers, int nameserver_num)
 {
-    resolv_mode = MODE_IPV4_FIRST;
+    resolv_mode = MODE_IPV6_FIRST;
 
     struct dns_ctx *ctx = &dns_defctx;
     if (nameservers == NULL) {