diff --git a/cli-runopts.c b/cli-runopts.c index ddd52b577e427aefeb2ce588aa9aae6da88456cc..e874dc2f9deae16ebb5f27b6a8c6b66d1b8945d4 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,