diff options
author | ehs2013 | 2016-04-25 04:19:25 +0800 |
---|---|---|
committer | ehs2013 | 2016-04-25 04:19:25 +0800 |
commit | b8dc60cadd63764eb05bd8a4e8827211a5037243 (patch) | |
tree | 0deab164509a37baa7b5a4b72636c9eee2bcd69f /ipv6.patch | |
download | aur-shadowsocks-libev-ipv6first.tar.gz |
Initial commit
Diffstat (limited to 'ipv6.patch')
-rw-r--r-- | ipv6.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ipv6.patch b/ipv6.patch new file mode 100644 index 000000000000..5c2e2b9d293c --- /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) { |