We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cd76778 + 6d7afe0 commit 92b9bf4Copy full SHA for 92b9bf4
http.c
@@ -465,6 +465,17 @@ static CURL *get_curl_handle(void)
465
466
if (curl_http_proxy) {
467
curl_easy_setopt(result, CURLOPT_PROXY, curl_http_proxy);
468
+#if LIBCURL_VERSION_NUM >= 0x071800
469
+ if (starts_with(curl_http_proxy, "socks5"))
470
+ curl_easy_setopt(result,
471
+ CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
472
+ else if (starts_with(curl_http_proxy, "socks4a"))
473
474
+ CURLOPT_PROXYTYPE, CURLPROXY_SOCKS4A);
475
+ else if (starts_with(curl_http_proxy, "socks"))
476
477
+ CURLOPT_PROXYTYPE, CURLPROXY_SOCKS4);
478
+#endif
479
}
480
#if LIBCURL_VERSION_NUM >= 0x070a07
481
curl_easy_setopt(result, CURLOPT_PROXYAUTH, CURLAUTH_ANY);
0 commit comments