diff options
Diffstat (limited to 'serverloop.c')
-rw-r--r-- | serverloop.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/serverloop.c b/serverloop.c index 39d992057..6c8719a3f 100644 --- a/serverloop.c +++ b/serverloop.c | |||
@@ -35,7 +35,7 @@ | |||
35 | */ | 35 | */ |
36 | 36 | ||
37 | #include "includes.h" | 37 | #include "includes.h" |
38 | RCSID("$OpenBSD: serverloop.c,v 1.94 2002/01/10 11:13:29 markus Exp $"); | 38 | RCSID("$OpenBSD: serverloop.c,v 1.95 2002/01/16 13:17:51 markus Exp $"); |
39 | 39 | ||
40 | #include "xmalloc.h" | 40 | #include "xmalloc.h" |
41 | #include "packet.h" | 41 | #include "packet.h" |
@@ -991,11 +991,8 @@ server_input_global_request(int type, u_int32_t seq, void *ctxt) | |||
991 | packet_send_debug("Server has disabled port forwarding."); | 991 | packet_send_debug("Server has disabled port forwarding."); |
992 | } else { | 992 | } else { |
993 | /* Start listening on the port */ | 993 | /* Start listening on the port */ |
994 | success = channel_request_forwarding( | 994 | success = channel_setup_remote_fwd_listener( |
995 | listen_address, listen_port, | 995 | listen_address, listen_port, options.gateway_ports); |
996 | /*unspec host_to_connect*/ "<unspec host>", | ||
997 | /*unspec port_to_connect*/ 0, | ||
998 | options.gateway_ports, /*remote*/ 1); | ||
999 | } | 996 | } |
1000 | xfree(listen_address); | 997 | xfree(listen_address); |
1001 | } | 998 | } |