From 2f86b79d8541c099d8a7510d6c31d09b53153b97 Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Wed, 3 Mar 2010 03:41:26 +0530 Subject: Use AI_PASSIVE flag to make tinyproxy listen on wildcard interface Signed-off-by: Michael Adam --- src/sock.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/sock.c b/src/sock.c index bf32c78..eef3bd0 100644 --- a/src/sock.c +++ b/src/sock.c @@ -178,6 +178,7 @@ int listen_sock (uint16_t port, socklen_t * addrlen) memset (&hints, 0, sizeof (struct addrinfo)); hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_STREAM; + hints.ai_flags = AI_PASSIVE; snprintf (portstr, sizeof (portstr), "%d", port); -- cgit v1.2.3