mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
just checkpointing
--HG-- extra : convert_revision : fbbf404290f3fea3dfa9f6f53eba9389057e9044
This commit is contained in:
@@ -47,6 +47,12 @@ static void printhelp() {
|
||||
"-T Don't allocate a pty\n"
|
||||
#ifdef DROPBEAR_PUBKEY_AUTH
|
||||
"-i <identityfile> (multiple allowed)\n"
|
||||
#endif
|
||||
#ifndef DISABLE_REMOTETCPFWD
|
||||
"-L <listenport:remotehsot:reportport> Local port forwarding\n"
|
||||
#endif
|
||||
#ifndef DISABLE_TCPFWD_DIRECT
|
||||
"-R <listenport:remotehost:remoteport> Remote port forwarding\n"
|
||||
#endif
|
||||
,DROPBEAR_VERSION, cli_opts.progname);
|
||||
}
|
||||
@@ -59,6 +65,12 @@ void cli_getopts(int argc, char ** argv) {
|
||||
#ifdef DROPBEAR_PUBKEY_AUTH
|
||||
int nextiskey = 0; /* A flag if the next argument is a keyfile */
|
||||
#endif
|
||||
#ifdef DROPBEAR_CLI_LOCALTCP
|
||||
int nextislocal = 0;
|
||||
#endif
|
||||
#ifdef DROPBEAR_CLI_REMOTETCP
|
||||
int nextisremote = 0;
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -71,6 +83,12 @@ void cli_getopts(int argc, char ** argv) {
|
||||
cli_opts.wantpty = 9; /* 9 means "it hasn't been touched", gets set later */
|
||||
#ifdef DROPBEAR_PUBKEY_AUTH
|
||||
cli_opts.pubkeys = NULL;
|
||||
#endif
|
||||
#ifdef DROPBEAR_CLI_LOCALTCP
|
||||
cli_opts.localports = NULL;
|
||||
#endif
|
||||
#ifdef DROPBEAR_CLI_REMOTETCP
|
||||
cli_opts.remoteports = NULL;
|
||||
#endif
|
||||
opts.nolocaltcp = 0;
|
||||
opts.noremotetcp = 0;
|
||||
|
||||
Reference in New Issue
Block a user