From 464dd1d483eb123770cfd257dfeb477abdafa9d6 Mon Sep 17 00:00:00 2001 From: pooler Date: Sat, 18 Jan 2014 17:40:07 +0100 Subject: [PATCH] Do not switch to Stratum if using an HTTP proxy --- util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util.c b/util.c index 4837721..e674eaa 100644 --- a/util.c +++ b/util.c @@ -377,7 +377,8 @@ json_t *json_rpc_call(CURL *curl, const char *url, /* If X-Stratum was found, activate Stratum */ if (want_stratum && hi.stratum_url && - !strncasecmp(hi.stratum_url, "stratum+tcp://", 14)) { + !strncasecmp(hi.stratum_url, "stratum+tcp://", 14) && + !(opt_proxy && opt_proxy_type == CURLPROXY_HTTP)) { have_stratum = true; tq_push(thr_info[stratum_thr_id].q, hi.stratum_url); hi.stratum_url = NULL;