summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-07 17:30:22 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-07 17:30:22 +0000
commit5c1fd1d911ae89ca47d2ab2370ba177a17688dfb (patch)
tree1adec076454d9ab606cbb2b4bbd270ad989466e9 /etc/inc/config.inc
parentfb8383e5d35b4f577178d5301e56d2664c88162d (diff)
downloadpfsense-5c1fd1d911ae89ca47d2ab2370ba177a17688dfb.zip
pfsense-5c1fd1d911ae89ca47d2ab2370ba177a17688dfb.tar.gz
Do not start PFTPX helper on interfaces that have been instructed not to
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r--etc/inc/config.inc16
1 files changed, 8 insertions, 8 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 288ce1a..8e329f8 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -1213,15 +1213,15 @@ function system_start_ftp_helpers() {
mwexec("/usr/bin/kill {$helpers}");
$interface_counter++;
continue;
- }
+ } else {
/* grab the current interface IP address */
- $ip = find_interface_ip(convert_friendly_interface_to_real_interface_name($ifname));
- /* if pftpx is already running then do not launch it again */
- $helpers = exec("ps aux | grep \"/usr/local/sbin/pftpx -c {$port} -g 8021\" | grep -v grep | grep {$ip}");
- if(!$helpers)
- mwexec("/usr/local/sbin/pftpx -c {$port} -g 8021 {$ip}");
-
- $interface_counter++;
+ $ip = find_interface_ip(convert_friendly_interface_to_real_interface_name($ifname));
+ /* if pftpx is already running then do not launch it again */
+ $helpers = exec("ps aux | grep \"/usr/local/sbin/pftpx -c {$port} -g 8021\" | grep -v grep | grep {$ip}");
+ if(!$helpers)
+ mwexec("/usr/local/sbin/pftpx -c {$port} -g 8021 {$ip}");
+ $interface_counter++;
+ }
}
}
OpenPOWER on IntegriCloud