diff --git a/daemon/http-tx-mgr.c b/daemon/http-tx-mgr.c index 836e3e0b..4e7363fc 100644 --- a/daemon/http-tx-mgr.c +++ b/daemon/http-tx-mgr.c @@ -641,6 +641,10 @@ set_proxy (CURL *curl, gboolean is_https) 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); + if (seaf->http_proxy_username && g_strcmp0 (seaf->http_proxy_username, "") != 0) + curl_easy_setopt(curl, CURLOPT_PROXYUSERNAME, seaf->http_proxy_username); + if (seaf->http_proxy_password && g_strcmp0 (seaf->http_proxy_password, "") != 0) + curl_easy_setopt(curl, CURLOPT_PROXYPASSWORD, seaf->http_proxy_password); } }