1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 20:44:19 +00:00

Store and display stripped url in its own variable.

This commit is contained in:
Con Kolivas 2012-09-29 14:16:16 +10:00
parent 3db6fb4fac
commit ac47f7f3a6
3 changed files with 4 additions and 1 deletions

View File

@ -4154,7 +4154,8 @@ static inline int cp_prio(void)
static void pool_resus(struct pool *pool)
{
applog(LOG_WARNING, "Pool %d %s alive", pool->pool_no, pool->rpc_url);
applog(LOG_WARNING, "Pool %d %s alive", pool->pool_no,
pool->has_stratum ? pool->stratum_url : pool->rpc_url);
if (pool->prio < cp_prio() && pool_strategy == POOL_FAILOVER)
switch_pools(NULL);
}

View File

@ -833,6 +833,7 @@ struct pool {
struct cgminer_pool_stats cgminer_pool_stats;
/* Stratum variables */
char *stratum_url;
SOCKETTYPE sock;
struct sockaddr_in *server, client;
char *subscription;

1
util.c
View File

@ -843,6 +843,7 @@ bool extract_sockaddr(struct pool *pool, char *url)
}
pool->server = (struct sockaddr_in *)res->ai_addr;
pool->stratum_url = strdup(url_address);
return true;
}