Mercurial > dropbear
diff cli-runopts.c @ 297:79bf1023cf11 agent-client
propagate from branch 'au.asn.ucc.matt.dropbear' (head 0501e6f661b5415eb76f3b312d183c3adfbfb712)
to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head 01038174ec27245b51bd43a66c01ad930880f67b)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 21 Mar 2006 16:20:59 +0000 |
parents | ca7e76d981d9 306499676384 |
children | c1e9c81d1d27 |
line wrap: on
line diff
--- a/cli-runopts.c Mon Jul 18 14:32:52 2005 +0000 +++ b/cli-runopts.c Tue Mar 21 16:20:59 2006 +0000 @@ -47,6 +47,7 @@ "Usage: %s [options] [user@]host\n" "Options are:\n" "-p <remoteport>\n" + "-l <username>\n" "-t Allocate a pty\n" "-T Don't allocate a pty\n" #ifdef ENABLE_CLI_PUBKEY_AUTH @@ -57,11 +58,11 @@ #endif #ifdef ENABLE_CLI_LOCALTCPFWD "-L <listenport:remotehost:remoteport> Local port forwarding\n" + "-g Allow remote hosts to connect to forwarded ports\n" #endif #ifdef ENABLE_CLI_REMOTETCPFWD "-R <listenport:remotehost:remoteport> Remote port forwarding\n" #endif - "-l <username>\n" #ifdef DEBUG_TRACE "-v verbose\n" #endif @@ -96,6 +97,7 @@ #endif #ifdef ENABLE_CLI_LOCALTCPFWD cli_opts.localfwds = NULL; + opts.listen_fwd_all = 0; #endif #ifdef ENABLE_CLI_REMOTETCPFWD cli_opts.remotefwds = NULL; @@ -104,8 +106,6 @@ cli_opts.agent_fwd = 0; cli_opts.agent_keys_loaded = 0; #endif - opts.nolocaltcp = 0; - opts.noremotetcp = 0; /* not yet opts.ipv4 = 1; opts.ipv6 = 1; @@ -174,6 +174,9 @@ case 'L': nextislocal = 1; break; + case 'g': + opts.listen_fwd_all = 1; + break; #endif #ifdef ENABLE_CLI_REMOTETCPFWD case 'R':