diff options
author | Mukund Sivaraman <muks@banu.com> | 2010-03-03 03:41:26 +0530 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2010-03-03 01:03:45 +0100 |
commit | 2f86b79d8541c099d8a7510d6c31d09b53153b97 (patch) | |
tree | 9812d3064ea6c5e53b7bad5c0d23aacfc03f417c /src/sock.c | |
parent | 243526d493656ace32edf13a594839adcf753d82 (diff) |
Use AI_PASSIVE flag to make tinyproxy listen on wildcard interface
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'src/sock.c')
-rw-r--r-- | src/sock.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |