From f167b2b07b7c8f702e3ebdb8bb59988868b2f251 Mon Sep 17 00:00:00 2001 From: pooler Date: Wed, 16 Apr 2014 10:47:22 +0200 Subject: [PATCH] Allow environment-defined tunnelling HTTP proxies --- util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/util.c b/util.c index 9c5db42..f2afed8 100644 --- a/util.c +++ b/util.c @@ -767,9 +767,8 @@ bool stratum_connect(struct stratum_ctx *sctx, const char *url) if (opt_proxy) { curl_easy_setopt(curl, CURLOPT_PROXY, opt_proxy); curl_easy_setopt(curl, CURLOPT_PROXYTYPE, opt_proxy_type); - if (opt_proxy_type == CURLPROXY_HTTP) - curl_easy_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, 1); } + curl_easy_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, 1); #if LIBCURL_VERSION_NUM >= 0x070f06 curl_easy_setopt(curl, CURLOPT_SOCKOPTFUNCTION, sockopt_keepalive_cb); #endif