mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-09 20:21:01 +00:00
Show a different warning and loglevel for failure to resolve a URL on first or subsequent testing of stratum pool URLs.
This commit is contained in:
parent
ef3b0657dd
commit
3972fe223b
9
util.c
9
util.c
@ -1522,8 +1522,13 @@ static bool setup_stratum_socket(struct pool *pool)
|
||||
hints->ai_family = AF_UNSPEC;
|
||||
hints->ai_socktype = SOCK_STREAM;
|
||||
if (getaddrinfo(pool->sockaddr_url, pool->stratum_port, hints, &servinfo) != 0) {
|
||||
applog(LOG_WARNING, "Failed to getaddrinfo (?wrong URL) on %s:%s",
|
||||
pool->sockaddr_url, pool->stratum_port);
|
||||
if (!pool->probed) {
|
||||
applog(LOG_WARNING, "Failed to resolve (?wrong URL) %s:%s",
|
||||
pool->sockaddr_url, pool->stratum_port);
|
||||
} else {
|
||||
applog(LOG_INFO, "Failed to getaddrinfo for %s:%s",
|
||||
pool->sockaddr_url, pool->stratum_port);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user