aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_define_servers.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2014-01-13 08:10:21 -0800
committerErmal Luçi <eri@pfsense.org>2014-01-13 08:10:21 -0800
commitebef25e662806d7a05a91012553d3b0ffb406fb6 (patch)
tree357bc9cf44654cf1ac366e9244f28d2b8a014b9f /config/snort/snort_define_servers.php
parent13d9babd775498cf1e3b796e07030e946e1cb12a (diff)
parentaf4460ff3f18dff763e0a493ac71be37dd814435 (diff)
downloadpfsense-packages-ebef25e662806d7a05a91012553d3b0ffb406fb6.tar.gz
pfsense-packages-ebef25e662806d7a05a91012553d3b0ffb406fb6.tar.bz2
pfsense-packages-ebef25e662806d7a05a91012553d3b0ffb406fb6.zip
Merge pull request #572 from bmeeks8/master
Incorporate Ermal's comments -- use conf_mount_rw() only where needed.
Diffstat (limited to 'config/snort/snort_define_servers.php')
-rwxr-xr-xconfig/snort/snort_define_servers.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/config/snort/snort_define_servers.php b/config/snort/snort_define_servers.php
index 7b729208..7c057b19 100755
--- a/config/snort/snort_define_servers.php
+++ b/config/snort/snort_define_servers.php
@@ -131,13 +131,14 @@ if ($_POST) {
$a_nat[$id] = $natent;
- conf_mount_rw();
write_config();
/* Update the snort conf file for this interface. */
$rebuild_rules = false;
snort_generate_conf($a_nat[$id]);
- conf_mount_ro();
+
+ /* Soft-restart Snort to live-load new variables. */
+ snort_reload_config($a_nat[$id]);
/* after click go to this page */
header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' );