diff options
author | Matt Johnston <matt@ucc.asn.au> | 2006-02-01 09:05:13 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2006-02-01 09:05:13 +0000 |
commit | fcba907998dd6e38b82cfcc05d632dfdb0baf9d1 (patch) | |
tree | 9e397ea28d6b9dfe82993669b14597d357d67fa2 | |
parent | 096ac021a9c83d26143aaef1e02a412846f1c0e3 (diff) |
Fix up #ifdefs for tcp forwarding
--HG--
extra : convert_revision : a2d35689310c70ea6eaab017d8c38b8fb6044c2b
-rw-r--r-- | svr-runopts.c | 8 |
1 files 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; |