diff options
author | Christian Hesse <mail@eworm.de> | 2016-01-27 22:25:16 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2016-01-27 22:25:16 +0100 |
commit | a3d89d4fb8a82a6425433c59e30fbc7c6b163a50 (patch) | |
tree | 99bb711840161d39b70fa16f4066f34a0d7b53e4 /pacredir.c | |
parent | dcf941b61d25e3ec74c1276845278baade10d736 (diff) | |
download | pacredir-a3d89d4fb8a82a6425433c59e30fbc7c6b163a50.tar.gz pacredir-a3d89d4fb8a82a6425433c59e30fbc7c6b163a50.tar.zst |
darkhttpd supports IPv6 now, no longer limit to IPv4
Diffstat (limited to 'pacredir.c')
-rw-r--r-- | pacredir.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -222,8 +222,8 @@ static void * get_http_code(void * data) { if ((curl = curl_easy_init()) != NULL) { curl_easy_setopt(curl, CURLOPT_URL, request->url); - /* darkhttpd only serves IPv4, so limit curl to that */ - curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); + /* try to resolve addresses to all IP versions that your system allows */ + curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_WHATEVER); /* tell libcurl to follow redirection */ curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); /* set user agent */ |