# HG changeset patch # User Matt Johnston # Date 1138784713 0 # Node ID be18c7dd486e7acbedbd0f0c6c142d09254cdf15 # Parent 50da8d4b5acda8af9197443ed1c69cce4796bc75 Fix up #ifdefs for tcp forwarding diff -r 50da8d4b5acd -r be18c7dd486e svr-runopts.c --- a/svr-runopts.c Wed Jan 25 17:14:32 2006 +0000 +++ b/svr-runopts.c Wed Feb 01 09:05:13 2006 +0000 @@ -105,8 +105,12 @@ 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 @@ 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;