From 650d91a08f5bbf8cc43c0fa20fd9fce083a30612 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 5 Oct 2005 02:11:11 +0000 Subject: [PATCH] Use extport[0] for checking port --- etc/inc/filter.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index f27e8c6972..0d05c03676 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -603,7 +603,7 @@ function filter_nat_rules_generate() { * a ftp server then launch a helper */ if($target <> "") { - if($natport == "21" and !$config['system']['disableftpproxy']) { + if($extport[0] == "21" and !$config['system']['disableftpproxy']) { $helpers = exec("ps awux | grep pftpx | grep {$target}"); if(!$helpers) mwexec_bg("/usr/local/sbin/pftpx -c 21 -f {$target} -g 81");