mirror of
https://github.com/clearml/dropbear
synced 2025-02-07 13:21:15 +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
|
#ifndef DISABLE_SYSLOG
|
||||||
"\tUseSyslog\n"
|
"\tUseSyslog\n"
|
||||||
#endif
|
#endif
|
||||||
|
"\tPort\n"
|
||||||
);
|
);
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
@ -909,5 +910,10 @@ static void add_extendedopt(const char* origstr) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (match_extendedopt(&optstr, "Port") == DROPBEAR_SUCCESS) {
|
||||||
|
cli_opts.remoteport = optstr;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
dropbear_log(LOG_WARNING, "Ignoring unknown configuration option '%s'", origstr);
|
dropbear_log(LOG_WARNING, "Ignoring unknown configuration option '%s'", origstr);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user