From f319d3b9105b864ccf16f6645683cc9b80d0d73f Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 10 Sep 2013 07:02:16 +1000 Subject: [PATCH] Use inet_addr instead of inet_network to fix windows build. --- util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util.c b/util.c index fc488a49..02ea133c 100644 --- a/util.c +++ b/util.c @@ -1867,7 +1867,8 @@ static bool socks4_negotiate(struct pool *pool, int sockd, bool socks4a) /* See if we've been given an IP address directly to avoid needing to * resolve it. */ - inp = inet_network(pool->sockaddr_url); + inp = inet_addr(pool->sockaddr_url); + inp = ntohl(inp); if ((int)inp != -1) socks4a = false; else {