From fcba907998dd6e38b82cfcc05d632dfdb0baf9d1 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Wed, 1 Feb 2006 09:05:13 +0000 Subject: [PATCH] Fix up #ifdefs for tcp forwarding --HG-- extra : convert_revision : a2d35689310c70ea6eaab017d8c38b8fb6044c2b --- svr-runopts.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/svr-runopts.c b/svr-runopts.c index 6c42fb4..8d8b8df 100644 --- a/svr-runopts.c +++ b/svr-runopts.c @@ -105,8 +105,12 @@ void svr_getopts(int argc, char ** argv) { svr_opts.inetdmode = 0; svr_opts.portcount = 0; svr_opts.hostkey = NULL; +#ifdef ENABLE_SVR_LOCALTCPFWD svr_opts.nolocaltcp = 0; +#endif +#ifdef ENABLE_SVR_REMOTETCPFWD svr_opts.noremotetcp = 0; +#endif /* not yet opts.ipv4 = 1; opts.ipv6 = 1; @@ -154,12 +158,12 @@ void svr_getopts(int argc, char ** argv) { svr_opts.usingsyslog = 0; break; #endif -#ifndef DISABLE_LOCALTCPFWD +#ifdef ENABLE_SVR_LOCALTCPFWD case 'j': svr_opts.nolocaltcp = 1; break; #endif -#ifndef DISABLE_REMOTETCPFWD +#ifdef ENABLE_SVR_REMOTETCPFWD case 'k': svr_opts.noremotetcp = 1; break;