# HG changeset patch # User Matt Johnston # Date 1267272927 0 # Node ID dd9947170fc8ca8a2e55f0b921546175918ebc03 # Parent 8c737cd7c1af86323ae32bcfc119cc3c77f548ba - fixes for listenaddr diff -r 8c737cd7c1af -r dd9947170fc8 cli-runopts.c --- 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 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 Remote port forwarding\n" + "-R <[listenaddress:]listenport:remotehost:remoteport> Remote port forwarding\n" #endif "-W (default %d, larger may be faster, max 1MB)\n" "-K (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,