diff options
author | Renato Botelho <renato@netgate.com> | 2016-12-09 18:22:14 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-12-09 18:25:32 -0200 |
commit | 7a76bc6f8ba16fa2872e9708760a16af1228ef2a (patch) | |
tree | 0c72d76bbcb488f22633eb45128402140d4a9621 /src/usr/local/www/firewall_nat_edit.php | |
parent | 9e21304e9202f354a40ec83624bfeea65a736048 (diff) | |
download | pfsense-7a76bc6f8ba16fa2872e9708760a16af1228ef2a.zip pfsense-7a76bc6f8ba16fa2872e9708760a16af1228ef2a.tar.gz |
Ticket #6472: Respect disabled field
Respect disabled field when creating firewall associated rule
Diffstat (limited to 'src/usr/local/www/firewall_nat_edit.php')
-rw-r--r-- | src/usr/local/www/firewall_nat_edit.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/usr/local/www/firewall_nat_edit.php b/src/usr/local/www/firewall_nat_edit.php index 7ed4945..f517592 100644 --- a/src/usr/local/www/firewall_nat_edit.php +++ b/src/usr/local/www/firewall_nat_edit.php @@ -487,6 +487,10 @@ if ($_POST) { $filterent['protocol'] = $_POST['proto']; $filterent['destination']['address'] = $_POST['localip']; + if (isset($_POST['disabled'])) { + $filterent['disabled'] = true; + } + $dstpfrom = $_POST['localbeginport']; $dstpto = $dstpfrom + $_POST['dstendport'] - $_POST['dstbeginport']; |