diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-09-05 12:15:57 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2014-09-05 12:15:57 -0400 |
commit | 179d7432250e40e8a7ca0e6e9c60045d14bbf47d (patch) | |
tree | 56f5eaf614ad11a2e690968db163598d18ad5102 /config/suricata/suricata_interfaces_edit.php | |
parent | 204dee69b85897fee37df320a8cf3f899e8f172f (diff) | |
download | pfsense-packages-179d7432250e40e8a7ca0e6e9c60045d14bbf47d.tar.gz pfsense-packages-179d7432250e40e8a7ca0e6e9c60045d14bbf47d.tar.bz2 pfsense-packages-179d7432250e40e8a7ca0e6e9c60045d14bbf47d.zip |
Bug fix for cloning interface via DUP icon.
Diffstat (limited to 'config/suricata/suricata_interfaces_edit.php')
-rw-r--r-- | config/suricata/suricata_interfaces_edit.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/config/suricata/suricata_interfaces_edit.php b/config/suricata/suricata_interfaces_edit.php index f46f88f5..c4a1775a 100644 --- a/config/suricata/suricata_interfaces_edit.php +++ b/config/suricata/suricata_interfaces_edit.php @@ -73,7 +73,7 @@ else $pconfig = array(); if (empty($suricataglob['rule'][$id]['uuid'])) { - /* Adding new interface, so flag rules to build. */ + /* Adding new interface, so generate a new UUID and flag rules to build. */ $pconfig['uuid'] = suricata_generate_id(); $rebuild_rules = true; } @@ -324,9 +324,12 @@ if ($_POST["save"] && !$input_errors) { $a_rule[$id] = $natent; } elseif (strcasecmp($action, 'dup') == 0) { - // Duplicating a new interface, so set flag to build new rules + // Duplicating an existing interface to a new interface, so set flag to build new rules $rebuild_rules = true; + // Duplicating an interface, so need to generate a new UUID for the cloned interface + $natent['uuid'] = suricata_generate_id(); + // Add the new duplicated interface configuration to the [rule] array in config $a_rule[] = $natent; } |