From 210bc9be3e04402036d773ef7ab9e185354962ae Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 2 Oct 2012 10:02:25 +1000 Subject: [PATCH] If no stratum url is set by the end of the detect stratum routine, copy the sockaddr url. --- cgminer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cgminer.c b/cgminer.c index 20b7436a..f01ee154 100644 --- a/cgminer.c +++ b/cgminer.c @@ -571,6 +571,8 @@ bool detect_stratum(struct pool *pool, char *url) if (!strncasecmp(url, "stratum+tcp://", 14) || stratum) { pool->has_stratum = true; + if (!pool->stratum_url) + pool->stratum_url = pool->sockaddr_url; return true; }