Remove AI_ADDRCONFIG, since the netlink socket is missing CLOEXEC and gets inherited by children.

This commit is contained in:
Ian Gulliver
2016-03-10 11:09:58 -08:00
parent acd5ca6b31
commit 89bbc645af

View File

@@ -15,7 +15,7 @@ void resolve_cleanup() {
void resolve(struct peer *peer, const char *node, const char *service, int flags) { void resolve(struct peer *peer, const char *node, const char *service, int flags) {
struct addrinfo hints = { struct addrinfo hints = {
.ai_flags = AI_V4MAPPED | AI_ADDRCONFIG | flags, .ai_flags = AI_V4MAPPED | flags,
.ai_family = AF_UNSPEC, .ai_family = AF_UNSPEC,
.ai_socktype = SOCK_STREAM, .ai_socktype = SOCK_STREAM,
}; };