]> git.saurik.com Git - apt.git/blobdiff - methods/connect.cc
Add a GetListOfFilesInDir() helper method which replaces the old
[apt.git] / methods / connect.cc
index 74e670ebd417cf0467aed6a45ef596653ecc1659..adb16a19973c9341dfc9b38f0a311f913cac63a2 100644 (file)
@@ -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;
       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
       Hints.ai_protocol = 0;
       
       // if we couldn't resolve the host before, we don't try now