comparison cli-runopts.c @ 1637:cf8dc6204fb6

support openssh long option -o Port=XXXX (#68)
author xcko <24556661+xcko@users.noreply.github.com>
date Wed, 20 Mar 2019 08:08:25 -0700
parents 2d450c1056e3
children 21dabe66f2c8
comparison
equal deleted inserted replaced
1636:35a1e8de3aec 1637:cf8dc6204fb6
889 "\tExitOnForwardFailure\n" 889 "\tExitOnForwardFailure\n"
890 #endif 890 #endif
891 #ifndef DISABLE_SYSLOG 891 #ifndef DISABLE_SYSLOG
892 "\tUseSyslog\n" 892 "\tUseSyslog\n"
893 #endif 893 #endif
894 "\tPort\n"
894 ); 895 );
895 exit(EXIT_SUCCESS); 896 exit(EXIT_SUCCESS);
896 } 897 }
897 898
898 #if DROPBEAR_CLI_ANYTCPFWD 899 #if DROPBEAR_CLI_ANYTCPFWD
907 opts.usingsyslog = parse_flag_value(optstr); 908 opts.usingsyslog = parse_flag_value(optstr);
908 return; 909 return;
909 } 910 }
910 #endif 911 #endif
911 912
913 if (match_extendedopt(&optstr, "Port") == DROPBEAR_SUCCESS) {
914 cli_opts.remoteport = optstr;
915 return;
916 }
917
912 dropbear_log(LOG_WARNING, "Ignoring unknown configuration option '%s'", origstr); 918 dropbear_log(LOG_WARNING, "Ignoring unknown configuration option '%s'", origstr);
913 } 919 }