1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 15:27:53 +00:00

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

This commit is contained in:
Con Kolivas 2012-10-02 10:02:25 +10:00
parent 78aafcec5c
commit 210bc9be3e

View File

@ -571,6 +571,8 @@ bool detect_stratum(struct pool *pool, char *url)
if (!strncasecmp(url, "stratum+tcp://", 14) || stratum) { if (!strncasecmp(url, "stratum+tcp://", 14) || stratum) {
pool->has_stratum = true; pool->has_stratum = true;
if (!pool->stratum_url)
pool->stratum_url = pool->sockaddr_url;
return true; return true;
} }