|
Lines 355-360
ssh_connect(const char *host, struct soc
Link Here
|
| 355 |
memset(&hints, 0, sizeof(hints)); |
355 |
memset(&hints, 0, sizeof(hints)); |
| 356 |
hints.ai_family = family; |
356 |
hints.ai_family = family; |
| 357 |
hints.ai_socktype = SOCK_STREAM; |
357 |
hints.ai_socktype = SOCK_STREAM; |
|
|
358 |
hints.ai_flags = AI_V4MAPPED | AI_ADDRCONFIG; |
| 358 |
snprintf(strport, sizeof strport, "%u", port); |
359 |
snprintf(strport, sizeof strport, "%u", port); |
| 359 |
if ((gaierr = getaddrinfo(host, strport, &hints, &aitop)) != 0) |
360 |
if ((gaierr = getaddrinfo(host, strport, &hints, &aitop)) != 0) |
| 360 |
fatal("%s: Could not resolve hostname %.100s: %s", __progname, |
361 |
fatal("%s: Could not resolve hostname %.100s: %s", __progname, |