diff --git a/util.c b/util.c index dcc11c4e..2856915b 100644 --- a/util.c +++ b/util.c @@ -836,7 +836,6 @@ bool extract_sockaddr(struct pool *pool, char *url) { char *url_begin, *url_end, *port_start = NULL; char url_address[256], port[6]; - struct addrinfo hints, *res; int url_len, port_len = 0; pool->sockaddr_url = url; @@ -866,18 +865,6 @@ bool extract_sockaddr(struct pool *pool, char *url) strcpy(port, "80"); pool->stratum_port = strdup(port); - - memset(&hints, 0, sizeof(struct addrinfo)); - hints.ai_family = AF_UNSPEC; - hints.ai_socktype = SOCK_STREAM; - hints.ai_protocol = IPPROTO_TCP; - - if (getaddrinfo(url_address, port, &hints, &res)) { - applog(LOG_DEBUG, "Failed to extract sock addr"); - return false; - } - freeaddrinfo(res); - pool->sockaddr_url = strdup(url_address); return true;