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) |
- (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 520491392..3fbe88d56 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 $"); | |||
36 | 36 | ||
37 | /* Flag indicating whether IPv4 or IPv6. This can be set on the command line. | 37 | /* Flag indicating whether IPv4 or IPv6. This can be set on the command line. |
38 | Default value is AF_UNSPEC means both IPv4 and IPv6. */ | 38 | Default value is AF_UNSPEC means both IPv4 and IPv6. */ |
39 | #ifdef IPV4_DEFAULT | ||
40 | int IPv4or6 = AF_INET; | ||
41 | #else | ||
39 | int IPv4or6 = AF_UNSPEC; | 42 | int IPv4or6 = AF_UNSPEC; |
43 | #endif | ||
40 | 44 | ||
41 | int ssh_port = SSH_DEFAULT_PORT; | 45 | int ssh_port = SSH_DEFAULT_PORT; |
42 | 46 | ||