Commit 210bc9be3e04402036d773ef7ab9e185354962ae

Con Kolivas 2012-10-02T10:02:25

If no stratum url is set by the end of the detect stratum routine, copy the sockaddr url.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index 20b7436..f01ee15 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;
 	}