mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 10:57:01 +00:00
support openssh long option -o Port=XXXX (#68)
This commit is contained in:
parent
16fb0b0d53
commit
553087b7a6
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user