1 Author: Roland Rosenfeld <roland@debian.org>
2 Description: Work around bind problems on startup (Closes: #534735)
3 Bug-Debian: http://bugs.debian.org/534735
7 @@ -867,20 +867,7 @@ int bind_port(const char *hostnam, int p
10 memset(&hints, 0, sizeof(struct addrinfo));
11 - if (hostnam == NULL)
14 - * XXX: This is a hack. The right thing to do
15 - * would be to bind to both AF_INET and AF_INET6.
16 - * This will also fail if there is no AF_INET
17 - * version available.
19 - hints.ai_family = AF_INET;
23 - hints.ai_family = AF_UNSPEC;
25 + hints.ai_family = AF_UNSPEC;
26 hints.ai_socktype = SOCK_STREAM;
27 hints.ai_flags = AI_PASSIVE;
28 hints.ai_protocol = 0; /* Really any stream protocol or TCP only */