aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMantas Mikulenas <grawity@gmail.com>2010-11-04 20:17:45 +0100
committerMax Kellermann <max@duempel.org>2010-11-04 20:17:45 +0100
commitec48b5ea3ac25d4b27c3b942017309b408fc3ac0 (patch)
tree6ba8f2e355ec31b4c8113b940b5099f5e29b035a
parent754015544f8ce40c2fd0d0e3bb8aac8a67696b45 (diff)
downloadmpd-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.
-rw-r--r--src/server_socket.c3
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;