diff options
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -39,7 +39,7 @@ | |||
39 | */ | 39 | */ |
40 | 40 | ||
41 | #include "includes.h" | 41 | #include "includes.h" |
42 | RCSID("$OpenBSD: ssh.c,v 1.116 2001/04/17 12:55:04 markus Exp $"); | 42 | RCSID("$OpenBSD: ssh.c,v 1.117 2001/04/30 11:18:52 markus Exp $"); |
43 | 43 | ||
44 | #include <openssl/evp.h> | 44 | #include <openssl/evp.h> |
45 | #include <openssl/err.h> | 45 | #include <openssl/err.h> |
@@ -191,6 +191,7 @@ usage(void) | |||
191 | fprintf(stderr, " -6 Use IPv6 only.\n"); | 191 | fprintf(stderr, " -6 Use IPv6 only.\n"); |
192 | fprintf(stderr, " -o 'option' Process the option as if it was read from a configuration file.\n"); | 192 | fprintf(stderr, " -o 'option' Process the option as if it was read from a configuration file.\n"); |
193 | fprintf(stderr, " -s Invoke command (mandatory) as SSH2 subsystem.\n"); | 193 | fprintf(stderr, " -s Invoke command (mandatory) as SSH2 subsystem.\n"); |
194 | fprintf(stderr, " -b Local IP address.\n"); | ||
194 | exit(1); | 195 | exit(1); |
195 | } | 196 | } |
196 | 197 | ||
@@ -318,7 +319,7 @@ main(int ac, char **av) | |||
318 | opt = av[optind][1]; | 319 | opt = av[optind][1]; |
319 | if (!opt) | 320 | if (!opt) |
320 | usage(); | 321 | usage(); |
321 | if (strchr("eilcmpLRDo", opt)) { /* options with arguments */ | 322 | if (strchr("eilcmpbLRDo", opt)) { /* options with arguments */ |
322 | optarg = av[optind] + 2; | 323 | optarg = av[optind] + 2; |
323 | if (strcmp(optarg, "") == 0) { | 324 | if (strcmp(optarg, "") == 0) { |
324 | if (optind >= ac - 1) | 325 | if (optind >= ac - 1) |
@@ -517,6 +518,9 @@ main(int ac, char **av) | |||
517 | case 's': | 518 | case 's': |
518 | subsystem_flag = 1; | 519 | subsystem_flag = 1; |
519 | break; | 520 | break; |
521 | case 'b': | ||
522 | options.bind_address = optarg; | ||
523 | break; | ||
520 | default: | 524 | default: |
521 | usage(); | 525 | usage(); |
522 | } | 526 | } |