Mercurial > dropbear
diff tcpfwd-direct.c @ 24:469950e86d0f
switching to global vars
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 20 Jul 2004 12:05:00 +0000 |
parents | f76c9389e9e0 |
children | 0969767bca0d |
line wrap: on
line diff
--- a/tcpfwd-direct.c Wed Jun 23 07:24:22 2004 +0000 +++ b/tcpfwd-direct.c Tue Jul 20 12:05:00 2004 +0000 @@ -3,6 +3,7 @@ #include "dbutil.h" #include "channel.h" #include "tcpfwd-direct.h" +#include "runopts.h" #ifndef DISABLE_TCPFWD_DIRECT static int newtcpdirect(struct Channel * channel); @@ -30,7 +31,7 @@ int len; int ret = DROPBEAR_FAILURE; - if (ses.opts->nolocaltcp) { + if (opts.nolocaltcp) { TRACE(("leave newtcpdirect: local tcp forwarding disabled")); goto out; }