summaryrefslogtreecommitdiffstats
path: root/src/plugins/locate
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/locate')
-rw-r--r--src/plugins/locate/python/py-locate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/locate/python/py-locate.c b/src/plugins/locate/python/py-locate.c
index 23b407c63..727302676 100644
--- a/src/plugins/locate/python/py-locate.c
+++ b/src/plugins/locate/python/py-locate.c
@@ -302,6 +302,7 @@ lookup(void *blob, enum locate_service_type svc, const char *realm,
return -1;
}
aihints.ai_socktype = thissocktype;
+ aihints.ai_flags = AI_ADDRCONFIG;
x = getaddrinfo (hoststr, portstr, &aihints, &airesult);
if (x != 0)
continue;