summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2009-12-11 00:42:43 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2009-12-11 00:42:43 +0100
commitd746ad6e049c472339003396f934e8ee93a0a378 (patch)
tree99b8605ffba2958cce3fa773175d674096277d0c
parentb9e9a44b3377cae2fb9aca3210f379ae1cb802ba (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)
-rw-r--r--debian/changelog2
-rw-r--r--methods/connect.cc1
2 files changed, 3 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index e930de0dd..b8e435330 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -69,6 +69,8 @@ apt (0.7.25) UNRELEASED; urgency=low
- add --debian-only as alias for --diff-only
* methods/connect.cc:
- display also strerror of "wicked" getaddrinfo errors
+ - add AI_ADDRCONFIG to ai_flags as suggested by Aurelien Jarno
+ in response to Bernhard R. Link, thanks! (Closes: #505020)
* buildlib/configure.mak, buildlib/config.{sub,guess}:
- remove (outdated) config.{sub,guess} and use the ones provided
by the new added build-dependency autotools-dev instead
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