From 2252dc654f797ee5906e4b1b49fa63171edda3cf Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Wed, 3 May 2000 18:03:08 +0000 Subject: GatewayPorts for sshd, ok deraadt@ --- usr.bin/ssh/channels.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'usr.bin/ssh/channels.c') diff --git a/usr.bin/ssh/channels.c b/usr.bin/ssh/channels.c index 942b62e2125..38e5d8d703e 100644 --- a/usr.bin/ssh/channels.c +++ b/usr.bin/ssh/channels.c @@ -17,7 +17,7 @@ */ #include "includes.h" -RCSID("$Id: channels.c,v 1.55 2000/05/02 19:33:12 markus Exp $"); +RCSID("$Id: channels.c,v 1.56 2000/05/03 18:03:06 markus Exp $"); #include "ssh.h" #include "packet.h" @@ -1552,7 +1552,7 @@ channel_request_remote_forwarding(u_short listen_port, const char *host_to_conne */ void -channel_input_port_forward_request(int is_root) +channel_input_port_forward_request(int is_root, int gateway_ports) { u_short port, host_port; char *hostname; @@ -1571,9 +1571,8 @@ channel_input_port_forward_request(int is_root) port); /* * Initiate forwarding, - * bind port to localhost only (gateway ports == 0). */ - channel_request_local_forwarding(port, hostname, host_port, 0); + channel_request_local_forwarding(port, hostname, host_port, gateway_ports); /* Free the argument string. */ xfree(hostname); -- cgit v1.2.3