aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/snort/snort.inc')
-rw-r--r--config/snort/snort.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index 873c5f79..7408557b 100644
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -317,10 +317,10 @@ function Running_Stop($snort_uuid, $if_real, $id) {
/* Log Iface stop */
exec("/usr/bin/logger -p daemon.info -i -t SnortStartup 'Interface Rule STOP for {$snort_uuid}_{$if_real}...'");
+ sleep(2); // Give time so GUI displays correctly
}
}
-
function Running_Start($snort_uuid, $if_real, $id) {
global $config;
@@ -340,6 +340,7 @@ function Running_Start($snort_uuid, $if_real, $id) {
/* Log Iface stop */
exec("/usr/bin/logger -p daemon.info -i -t SnortStartup 'Interface Rule START for {$id}_{$snort_uuid}_{$if_real}...'");
+ sleep(2); // Give time so GUI displays correctly
}
/* get the real iface name of wan */