support openssh long option -o Port=XXXX (#68)

This commit is contained in:
xcko 2019-03-20 08:08:25 -07:00 committed by Matt Johnston
parent 16fb0b0d53
commit 553087b7a6

View File

@ -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);
}