Browse Source

Use inet_addr instead of inet_network to fix windows build.

Con Kolivas 12 years ago
parent
commit
f319d3b910
1 changed files with 2 additions and 1 deletions
  1. 2 1
      util.c

+ 2 - 1
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 {