Skip to content

Commit

Permalink
Do not switch to Stratum if using an HTTP proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
pooler committed Jan 18, 2014
1 parent d733712 commit 464dd1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 464dd1d

Please sign in to comment.