... | ... |
@@ -231,6 +231,7 @@ wwwconnect (const char *server, const char *proxy, int pport, char *ip, |
231 | 231 |
hints.ai_family = AF_INET; |
232 | 232 |
#endif |
233 | 233 |
hints.ai_socktype = SOCK_STREAM; |
234 |
+ hints.ai_flags = AI_ADDRCONFIG; |
|
234 | 235 |
snprintf (port_s, sizeof (port_s), "%d", port); |
235 | 236 |
port_s[sizeof (port_s) - 1] = 0; |
236 | 237 |
ret = getaddrinfo (hostpt, port_s, &hints, &res); |