Don't use AI_ADDRCONFIG.
[darkstat] / http.c
diff --git a/http.c b/http.c
index fc8efd3..6274b9b 100644 (file)
--- a/http.c
+++ b/http.c
@@ -894,9 +894,6 @@ static struct addrinfo *get_bind_addr(
 #endif
     hints.ai_socktype = SOCK_STREAM;
     hints.ai_flags = AI_PASSIVE;
-#ifdef AI_ADDRCONFIG
-    hints.ai_flags |= AI_ADDRCONFIG;
-#endif
     snprintf(portstr, sizeof(portstr), "%u", bindport);
     if ((ret = getaddrinfo(bindaddr, portstr, &hints, &ai)))
         err(1, "getaddrinfo(%s,%s) failed: %s",