Skip to content

Commit

Permalink
Allow environment-defined tunnelling HTTP proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
pooler committed Apr 16, 2014
1 parent 42a002c commit f167b2b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f167b2b

Please sign in to comment.