diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-12-18 16:53:22 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-12-18 16:53:22 +0100 |
commit | c55451ff2e5a098a6431dfd1be322f7113a86002 (patch) | |
tree | 4369cdb8cc209b1e44f81e978684992a68cd5dbc /methods/connect.cc | |
parent | a0895a74fe95997a5d75e5b54c95afb9594554f6 (diff) | |
parent | d0cf6da810b2ad898c0eb75ac8815ab5e56cf015 (diff) |
merge from the debian-sid branch
Diffstat (limited to 'methods/connect.cc')
-rw-r--r-- | methods/connect.cc | 1 |
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 |