Fix up #ifdefs for tcp forwarding

--HG--
extra : convert_revision : a2d35689310c70ea6eaab017d8c38b8fb6044c2b
This commit is contained in:
Matt Johnston 2006-02-01 09:05:13 +00:00
parent 096ac021a9
commit fcba907998

View File

@ -105,8 +105,12 @@ void svr_getopts(int argc, char ** argv) {
svr_opts.inetdmode = 0; svr_opts.inetdmode = 0;
svr_opts.portcount = 0; svr_opts.portcount = 0;
svr_opts.hostkey = NULL; svr_opts.hostkey = NULL;
#ifdef ENABLE_SVR_LOCALTCPFWD
svr_opts.nolocaltcp = 0; svr_opts.nolocaltcp = 0;
#endif
#ifdef ENABLE_SVR_REMOTETCPFWD
svr_opts.noremotetcp = 0; svr_opts.noremotetcp = 0;
#endif
/* not yet /* not yet
opts.ipv4 = 1; opts.ipv4 = 1;
opts.ipv6 = 1; opts.ipv6 = 1;
@ -154,12 +158,12 @@ void svr_getopts(int argc, char ** argv) {
svr_opts.usingsyslog = 0; svr_opts.usingsyslog = 0;
break; break;
#endif #endif
#ifndef DISABLE_LOCALTCPFWD #ifdef ENABLE_SVR_LOCALTCPFWD
case 'j': case 'j':
svr_opts.nolocaltcp = 1; svr_opts.nolocaltcp = 1;
break; break;
#endif #endif
#ifndef DISABLE_REMOTETCPFWD #ifdef ENABLE_SVR_REMOTETCPFWD
case 'k': case 'k':
svr_opts.noremotetcp = 1; svr_opts.noremotetcp = 1;
break; break;