curl/curl-7.34.0-dns-resolver-prefer-ipv4.patch

12 lines
442 B
Diff

--- curl-7.34.0/lib/asyn-ares.c 2013-12-16 23:02:35.000000000 +0100
+++ curl-7.34.0.patched/lib/asyn-ares.c 2013-12-25 21:32:07.973208137 +0100
@@ -518,7 +518,7 @@
switch(conn->ip_version) {
default:
-#if ARES_VERSION >= 0x010601
+#if 0
family = PF_UNSPEC; /* supported by c-ares since 1.6.1, so for older
c-ares versions this just falls through and defaults
to PF_INET */