diff options
Diffstat (limited to 'cli-runopts.c')
-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); } |