From 1cb589f5d40d432335cfa098e426807dd20bad0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=B5=AB=E7=84=B6?= Date: Wed, 28 Oct 2020 14:19:57 +0800 Subject: [PATCH] Use socks5h for socks5 proxy --- daemon/http-tx-mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/http-tx-mgr.c b/daemon/http-tx-mgr.c index db846f04..e1377237 100644 --- a/daemon/http-tx-mgr.c +++ b/daemon/http-tx-mgr.c @@ -627,7 +627,7 @@ set_proxy (CURL *curl, gboolean is_https) } else if (g_strcmp0(seaf->http_proxy_type, PROXY_TYPE_SOCKS) == 0) { if (seaf->http_proxy_port < 0) return; - curl_easy_setopt(curl, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5); + curl_easy_setopt(curl, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5_HOSTNAME); curl_easy_setopt(curl, CURLOPT_PROXY, seaf->http_proxy_addr); curl_easy_setopt(curl, CURLOPT_PROXYPORT, seaf->http_proxy_port); }