summaryrefslogtreecommitdiff
path: root/methods/connect.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2009-11-28 00:53:53 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2009-11-28 00:53:53 +0100
commit1df14bc5a7011c2da0ecd1e89911c64627119883 (patch)
tree347069761c4ada99643b02880841697a4510913f /methods/connect.cc
parent164994f54fbb2283a0ad320fe34009ee9cd06f8e (diff)
add AI_ADDRCONFIG to ai_flags in connect.cc as suggested by Aurelien Jarno
in his response to Bernhard R. Link's patch, thanks! (Closes: #505020)
Diffstat (limited to 'methods/connect.cc')
-rw-r--r--methods/connect.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/methods/connect.cc b/methods/connect.cc
index 74e670ebd..adb16a199 100644
--- a/methods/connect.cc
+++ b/methods/connect.cc
@@ -158,6 +158,7 @@ bool Connect(string Host,int Port,const char *Service,int DefPort,int &Fd,
struct addrinfo Hints;
memset(&Hints,0,sizeof(Hints));
Hints.ai_socktype = SOCK_STREAM;
+ Hints.ai_flags = AI_ADDRCONFIG;
Hints.ai_protocol = 0;
// if we couldn't resolve the host before, we don't try now