diff options
author | Matt Johnston <matt@ucc.asn.au> | 2010-02-27 12:15:27 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2010-02-27 12:15:27 +0000 |
commit | 9f42a75ef6b5f90844be647c57625c4a56a996bb (patch) | |
tree | a42b267016fb5a0fd054e920251e186985d6e605 /cli-runopts.c | |
parent | ddbfdb079991e9705c8874ae2d2dbd64394f269c (diff) |
- fixes for listenaddr
--HG--
extra : convert_revision : 9eebe96bb7c26c4c09c77a2e89a67a7332abcd49
Diffstat (limited to 'cli-runopts.c')
-rw-r--r-- | cli-runopts.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cli-runopts.c b/cli-runopts.c index ddd52b5..e874dc2 100644 --- a/cli-runopts.c +++ b/cli-runopts.c @@ -71,11 +71,11 @@ static void printhelp() { "-A Enable agent auth forwarding\n" #endif #ifdef ENABLE_CLI_LOCALTCPFWD - "-L <listenport:remotehost:remoteport> Local port forwarding\n" + "-L <[listenaddress:]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" + "-R <[listenaddress:]listenport:remotehost:remoteport> Remote port forwarding\n" #endif "-W <receive_window_buffer> (default %d, larger may be faster, max 1MB)\n" "-K <keepalive> (0 is never, default %d)\n" @@ -682,8 +682,6 @@ static void addforward(const char* origstr, m_list *fwdlist) { connectport = part3; } - } - newfwd = m_malloc(sizeof(struct TCPFwdEntry)); /* Now we check the ports - note that the port ints are unsigned, |