diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2000-02-20 20:05:20 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2000-02-20 20:05:20 +0000 |
commit | e29baf04bb3b542b98ca64dcd4fe5e0d5fa371e9 (patch) | |
tree | 4f0eec8d149631ff751641cbdd08ca8ae4f4b198 | |
parent | 3620db032ec70a5f23528072a5c773d5ec84eaf3 (diff) |
suppress AAAA query host when '-4' is used; from shin@nd.net.fujitsu.co.jp
-rw-r--r-- | usr.bin/ssh/ssh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c index 63f7cb00e7f..f42fcb6a384 100644 --- a/usr.bin/ssh/ssh.c +++ b/usr.bin/ssh/ssh.c @@ -11,7 +11,7 @@ */ #include "includes.h" -RCSID("$Id: ssh.c,v 1.39 2000/01/04 13:41:32 markus Exp $"); +RCSID("$Id: ssh.c,v 1.40 2000/02/20 20:05:19 markus Exp $"); #include "xmalloc.h" #include "ssh.h" @@ -489,7 +489,7 @@ main(int ac, char **av) struct addrinfo *ai = NULL; int errgai; memset(&hints, 0, sizeof(hints)); - hints.ai_family = AF_UNSPEC; + hints.ai_family = IPv4or6; hints.ai_flags = AI_CANONNAME; hints.ai_socktype = SOCK_STREAM; errgai = getaddrinfo(host, NULL, &hints, &ai); |