Mercurial > dropbear
diff cli-runopts.c @ 580:dd9947170fc8
- fixes for listenaddr
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 27 Feb 2010 12:15:27 +0000 |
parents | 8c737cd7c1af |
children | a98a2138364a |
line wrap: on
line diff
--- a/cli-runopts.c Sat Feb 27 11:53:18 2010 +0000 +++ b/cli-runopts.c Sat Feb 27 12:15:27 2010 +0000 @@ -71,11 +71,11 @@ "-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 @@ connectport = part3; } - } - newfwd = m_malloc(sizeof(struct TCPFwdEntry)); /* Now we check the ports - note that the port ints are unsigned,