summaryrefslogtreecommitdiffhomepage
path: root/cli-runopts.c
diff options
context:
space:
mode:
authorxcko <24556661+xcko@users.noreply.github.com>2019-03-20 08:08:25 -0700
committerMatt Johnston <matt@ucc.asn.au>2019-03-20 23:08:25 +0800
commit553087b7a6d2b2b48d7506fdffea3f1f78bbd6b6 (patch)
tree36bc08fa752ffbeaa9b659639c1b9cc5d306e188 /cli-runopts.c
parent16fb0b0d5369ccf0557d224c70a87e4a65f59a80 (diff)
support openssh long option -o Port=XXXX (#68)
Diffstat (limited to 'cli-runopts.c')
-rw-r--r--cli-runopts.c6
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);
}