Do not switch to Stratum if using an HTTP proxy
This commit is contained in:
parent
d7337126b9
commit
464dd1d483
1 changed files with 2 additions and 1 deletions
3
util.c
3
util.c
|
@ -377,7 +377,8 @@ json_t *json_rpc_call(CURL *curl, const char *url,
|
||||||
|
|
||||||
/* If X-Stratum was found, activate Stratum */
|
/* If X-Stratum was found, activate Stratum */
|
||||||
if (want_stratum && hi.stratum_url &&
|
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;
|
have_stratum = true;
|
||||||
tq_push(thr_info[stratum_thr_id].q, hi.stratum_url);
|
tq_push(thr_info[stratum_thr_id].q, hi.stratum_url);
|
||||||
hi.stratum_url = NULL;
|
hi.stratum_url = NULL;
|
||||||
|
|
Loading…
Reference in a new issue