diff options
author | Damien Miller <djm@mindrot.org> | 2001-11-15 08:40:45 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-11-15 08:40:45 +1100 |
commit | efdc1f179de4e2bbfa9b37353c42e04b0eb400c6 (patch) | |
tree | 4c04f0966871100481203345cabd28546327f34c /ssh-keyscan.c | |
parent | 353f60874037c5cd5ae8245c348b2665017fd850 (diff) | |
download | openssh-git-efdc1f179de4e2bbfa9b37353c42e04b0eb400c6.tar.gz |
- (djm) Fix IPv4 default in ssh-keyscan. Spotted by Dan Astoorian
<djast@cs.toronto.edu> Fix from markus@
Diffstat (limited to 'ssh-keyscan.c')
-rw-r--r-- | ssh-keyscan.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ssh-keyscan.c b/ssh-keyscan.c index 52049139..3fbe88d5 100644 --- a/ssh-keyscan.c +++ b/ssh-keyscan.c @@ -36,7 +36,11 @@ RCSID("$OpenBSD: ssh-keyscan.c,v 1.30 2001/10/08 19:05:05 markus Exp $"); /* Flag indicating whether IPv4 or IPv6. This can be set on the command line. Default value is AF_UNSPEC means both IPv4 and IPv6. */ +#ifdef IPV4_DEFAULT +int IPv4or6 = AF_INET; +#else int IPv4or6 = AF_UNSPEC; +#endif int ssh_port = SSH_DEFAULT_PORT; |