summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-05 02:11:11 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-05 02:11:11 +0000
commit650d91a08f5bbf8cc43c0fa20fd9fce083a30612 (patch)
treee390799b7d3e7631458d7bbc282c316612cf99cb /etc/inc
parent4692696e1d54641322f6e0f96226b4da5d8bd17d (diff)
downloadpfsense-650d91a08f5bbf8cc43c0fa20fd9fce083a30612.zip
pfsense-650d91a08f5bbf8cc43c0fa20fd9fce083a30612.tar.gz
Use extport[0] for checking port
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/filter.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index f27e8c6..0d05c03 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");
OpenPOWER on IntegriCloud