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:
parent
78aafcec5c
commit
210bc9be3e
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user