From 51c499a5ae07122d146a7be2d35ea92df3093145 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 5 Oct 2012 00:08:49 +1000 Subject: [PATCH] Stratum does not currently have any proxy support so do not try to switch to stratum if a proxy has been specified. --- cgminer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cgminer.c b/cgminer.c index 36adc5b5..482907cb 100644 --- a/cgminer.c +++ b/cgminer.c @@ -4241,8 +4241,9 @@ retry_stratum: gettimeofday(&tv_getwork_reply, NULL); /* Detect if a http getwork pool has an X-Stratum header at startup, - * and if so, switch to that in preference to getwork */ - if (unlikely(pool->stratum_url)) { + * and if so, switch to that in preference to getwork. Currently no + * proxy support so don't try to switch if a proxy is in use. */ + if (unlikely(pool->stratum_url && !pool->rpc_proxy)) { applog(LOG_NOTICE, "Switching pool %d %s to %s", pool->pool_no, pool->rpc_url, pool->stratum_url); pool->has_stratum = true; pool->rpc_url = pool->stratum_url;