diff --git a/miner.h b/miner.h index 2300a273..d1604068 100644 --- a/miner.h +++ b/miner.h @@ -1183,6 +1183,9 @@ struct pool { char *sockbuf; size_t sockbuf_size; char *sockaddr_url; /* stripped url used for sockaddr */ + char *sockaddr_proxy_url; + char *sockaddr_proxy_port; + char *nonce1; unsigned char *nonce1bin; size_t n1_len; diff --git a/util.c b/util.c index ca72d80b..83aeb282 100644 --- a/util.c +++ b/util.c @@ -567,6 +567,7 @@ char *get_proxy(char *url, struct pool *pool) quithere(1, "Failed to malloc rpc_proxy"); strcpy(pool->rpc_proxy, url + plen); + extract_sockaddr(pool->rpc_proxy, &pool->sockaddr_proxy_url, &pool->sockaddr_proxy_port); pool->rpc_proxytype = proxynames[i].proxytype; url = split + 1; break;