aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-08-06 13:29:15 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-08-06 13:29:15 -0400
commit12ae9bfc819ec6cdf3742db9bd8897c10e2b20c8 (patch)
tree8d3344fb9cc38f94464e77fa88c3f54e33ae270f
parent7a3029b2666932137ced2cf276f2c957c1ec8dd8 (diff)
downloadpfsense-packages-12ae9bfc819ec6cdf3742db9bd8897c10e2b20c8.tar.gz
pfsense-packages-12ae9bfc819ec6cdf3742db9bd8897c10e2b20c8.tar.bz2
pfsense-packages-12ae9bfc819ec6cdf3742db9bd8897c10e2b20c8.zip
Fix error preventing rules rebuild when duplicating an interface.
-rwxr-xr-xconfig/snort/snort_interfaces_edit.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/snort/snort_interfaces_edit.php b/config/snort/snort_interfaces_edit.php
index ca8d03ee..fb573a73 100755
--- a/config/snort/snort_interfaces_edit.php
+++ b/config/snort/snort_interfaces_edit.php
@@ -176,6 +176,9 @@ if ($_POST["save"] && !$input_errors) {
/* if no errors write to conf */
if (!$input_errors) {
+ /* Most changes don't require a rules rebuild, so default to "off" */
+ $rebuild_rules = false;
+
$natent = $a_rule[$id];
$natent['interface'] = $_POST['interface'];
$natent['enable'] = $_POST['enable'] ? 'on' : 'off';
@@ -360,9 +363,6 @@ if ($_POST["save"] && !$input_errors) {
/* Save configuration changes */
write_config("Snort pkg: modified interface configuration for {$natent['interface']}.");
- /* Most changes don't require a rules rebuild, so default to "off" */
- $rebuild_rules = false;
-
/* Update snort.conf and snort.sh files for this interface */
sync_snort_package_config();