diff options
author | Mantas Mikulenas <grawity@gmail.com> | 2010-11-04 20:17:45 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-11-04 20:17:45 +0100 |
commit | ec48b5ea3ac25d4b27c3b942017309b408fc3ac0 (patch) | |
tree | 6ba8f2e355ec31b4c8113b940b5099f5e29b035a /src/server_socket.c | |
parent | 754015544f8ce40c2fd0d0e3bb8aac8a67696b45 (diff) | |
download | mpd-ec48b5ea3ac25d4b27c3b942017309b408fc3ac0.tar.gz mpd-ec48b5ea3ac25d4b27c3b942017309b408fc3ac0.tar.xz mpd-ec48b5ea3ac25d4b27c3b942017309b408fc3ac0.zip |
server_socket: remove AI_ADDRCONFIG
When you pass the flag AI_ADDRCONFIG to getaddrinfo(), it does not
consider address families on the loopback device. When run on a
machine without an external network card, just with "lo", it was
unable to look up any address.
Diffstat (limited to 'src/server_socket.c')
-rw-r--r-- | src/server_socket.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/server_socket.c b/src/server_socket.c index b0eb179a6..bb7a6f097 100644 --- a/src/server_socket.c +++ b/src/server_socket.c @@ -372,9 +372,6 @@ server_socket_add_host(struct server_socket *ss, const char *hostname, struct addrinfo hints; memset(&hints, 0, sizeof(hints)); hints.ai_flags = AI_PASSIVE; -#ifdef AI_ADDRCONFIG - hints.ai_flags |= AI_ADDRCONFIG; -#endif hints.ai_family = PF_UNSPEC; hints.ai_socktype = SOCK_STREAM; hints.ai_protocol = IPPROTO_TCP; |