summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/firewall_nat.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/firewall_nat.php b/usr/local/www/firewall_nat.php
index 9b54db2..7b94585 100755
--- a/usr/local/www/firewall_nat.php
+++ b/usr/local/www/firewall_nat.php
@@ -72,8 +72,8 @@ if (isset($_POST['del_x'])) {
foreach ($_POST['rule'] as $rulei) {
$target = $rule['target'];
$helpers = exec("/bin/ps auwx | grep pftpx | grep {$target} | grep -v grep | cut -d\" \" -f5");
- if(!$helpers) {
- /* install a pftpx helper, do not set a rule */
+ if($helpers) {
+ /* kill ftp proxy helper */
mwexec("/bin/kill {$helpers}");
}
unset($a_nat[$rulei]);
OpenPOWER on IntegriCloud