Mercurial > dropbear
diff svr-runopts.c @ 271:be18c7dd486e
Fix up #ifdefs for tcp forwarding
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 01 Feb 2006 09:05:13 +0000 |
parents | 306499676384 |
children | 973fccb59ea4 3bfbe95f9a14 0aaaf68e97dc |
line wrap: on
line diff
--- 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;