mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 15:27:53 +00:00
server and client sockaddr_in are no longer used in struct pool.
This commit is contained in:
parent
7e17af6913
commit
a2d5783509
1
miner.h
1
miner.h
@ -872,7 +872,6 @@ struct pool {
|
|||||||
CURL *stratum_curl;
|
CURL *stratum_curl;
|
||||||
SOCKETTYPE sock;
|
SOCKETTYPE sock;
|
||||||
char sockbuf[RBUFSIZE];
|
char sockbuf[RBUFSIZE];
|
||||||
struct sockaddr_in *server, client;
|
|
||||||
char *sockaddr_url; /* stripped url used for sockaddr */
|
char *sockaddr_url; /* stripped url used for sockaddr */
|
||||||
char *nonce1;
|
char *nonce1;
|
||||||
uint32_t nonce2;
|
uint32_t nonce2;
|
||||||
|
2
util.c
2
util.c
@ -876,8 +876,8 @@ bool extract_sockaddr(struct pool *pool, char *url)
|
|||||||
applog(LOG_DEBUG, "Failed to extract sock addr");
|
applog(LOG_DEBUG, "Failed to extract sock addr");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
freeaddrinfo(res);
|
||||||
|
|
||||||
pool->server = (struct sockaddr_in *)res->ai_addr;
|
|
||||||
pool->sockaddr_url = strdup(url_address);
|
pool->sockaddr_url = strdup(url_address);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user