diff options
author | xcko <24556661+xcko@users.noreply.github.com> | 2019-03-20 08:08:25 -0700 |
---|---|---|
committer | xcko <24556661+xcko@users.noreply.github.com> | 2019-03-20 08:08:25 -0700 |
commit | 16347690cd390d6618868b7befc24fab64ad74cb (patch) | |
tree | fe059083b4097cf15b811eade8cee73a2f2961b2 | |
parent | c6b82c6a15ff49042e17a8f83279e0de39a2b928 (diff) | |
download | dropbear-16347690cd390d6618868b7befc24fab64ad74cb.tar.gz |
support openssh long option -o Port=XXXX (#68)
-rw-r--r-- | cli-runopts.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli-runopts.c b/cli-runopts.c index abcfc9f..a483345 100644 --- a/cli-runopts.c +++ b/cli-runopts.c @@ -891,6 +891,7 @@ static void add_extendedopt(const char* origstr) { #ifndef DISABLE_SYSLOG "\tUseSyslog\n" #endif + "\tPort\n" ); exit(EXIT_SUCCESS); } @@ -909,5 +910,10 @@ static void add_extendedopt(const char* origstr) { } #endif + if (match_extendedopt(&optstr, "Port") == DROPBEAR_SUCCESS) { + cli_opts.remoteport = optstr; + return; + } + dropbear_log(LOG_WARNING, "Ignoring unknown configuration option '%s'", origstr); } |