]>
Commit | Line | Data |
---|---|---|
9d8fd3ad SS |
1 | diff -up openssh-5.8p1/sshconnect.c.getaddrinfo openssh-5.8p1/sshconnect.c |
2 | --- openssh-5.8p1/sshconnect.c.getaddrinfo 2011-04-27 09:51:44.521384633 +0200 | |
3 | +++ openssh-5.8p1/sshconnect.c 2011-04-27 09:53:21.224443308 +0200 | |
4 | @@ -355,6 +355,7 @@ ssh_connect(const char *host, struct soc | |
5 | memset(&hints, 0, sizeof(hints)); | |
6 | hints.ai_family = family; | |
7 | hints.ai_socktype = SOCK_STREAM; | |
8 | + hints.ai_flags = AI_V4MAPPED | AI_ADDRCONFIG; | |
9 | snprintf(strport, sizeof strport, "%u", port); | |
10 | if ((gaierr = getaddrinfo(host, strport, &hints, &aitop)) != 0) | |
11 | fatal("%s: Could not resolve hostname %.100s: %s", __progname, |