From 3d935979946e45393230c4adf6ee1835d7cceaba Mon Sep 17 00:00:00 2001 From: bmeeks8 Date: Fri, 19 Sep 2014 21:50:23 -0400 Subject: Ensure we unset only desired element instead of entire array! --- config/snort/snort_barnyard.php | 1 + 1 file changed, 1 insertion(+) (limited to 'config/snort/snort_barnyard.php') diff --git a/config/snort/snort_barnyard.php b/config/snort/snort_barnyard.php index 4943f981..3f3d8ae5 100644 --- a/config/snort/snort_barnyard.php +++ b/config/snort/snort_barnyard.php @@ -98,6 +98,7 @@ if ($_POST['save']) { if ($_POST['barnyard_enable'] != 'on') { $a_nat[$id]['barnyard_enable'] = 'off'; write_config("Snort pkg: modified Barnyard2 settings."); + touch("{$g['varrun_path']}/barnyard2_{$uuid}.disabled"); snort_barnyard_stop($a_nat[$id], get_real_interface($a_nat[$id]['interface'])); // No need to rebuild rules for Barnyard2 changes -- cgit v1.2.3