summarylogtreecommitdiffstats
path: root/ipv6.patch
diff options
context:
space:
mode:
authorehs20132016-04-25 04:19:25 +0800
committerehs20132016-04-25 04:19:25 +0800
commitb8dc60cadd63764eb05bd8a4e8827211a5037243 (patch)
tree0deab164509a37baa7b5a4b72636c9eee2bcd69f /ipv6.patch
downloadaur-shadowsocks-libev-ipv6first.tar.gz
Initial commit
Diffstat (limited to 'ipv6.patch')
-rw-r--r--ipv6.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/ipv6.patch b/ipv6.patch
new file mode 100644
index 00000000000..5c2e2b9d293
--- /dev/null
+++ b/ipv6.patch
@@ -0,0 +1,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) {