diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-03-03 15:15:46 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-03-03 15:15:46 +0900 |
commit | d01695a6f0b6c729b7345d4d9af2cb642b9f20aa (patch) | |
tree | efc8d78fe6f686441e9a56f17dc8d9f899b57875 /http.c | |
parent | 6bb0b9cc74dd2e64cd265af6abee0943e369730a (diff) | |
download | git-d01695a6f0b6c729b7345d4d9af2cb642b9f20aa.tar.gz git-d01695a6f0b6c729b7345d4d9af2cb642b9f20aa.tar.bz2 git-d01695a6f0b6c729b7345d4d9af2cb642b9f20aa.zip |
Imported Upstream version 2.8.3upstream/2.8.3
Diffstat (limited to 'http.c')
-rw-r--r-- | http.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -605,7 +605,10 @@ static CURL *get_curl_handle(void) if (curl_http_proxy) { curl_easy_setopt(result, CURLOPT_PROXY, curl_http_proxy); #if LIBCURL_VERSION_NUM >= 0x071800 - if (starts_with(curl_http_proxy, "socks5")) + if (starts_with(curl_http_proxy, "socks5h")) + curl_easy_setopt(result, + CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5_HOSTNAME); + else if (starts_with(curl_http_proxy, "socks5")) curl_easy_setopt(result, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5); else if (starts_with(curl_http_proxy, "socks4a")) |