Browse Source

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

Con Kolivas 13 years ago
parent
commit
210bc9be3e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      cgminer.c

+ 2 - 0
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;
 	}