aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/snort/snort_dynamic_ip_reload.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/snort/snort_dynamic_ip_reload.php b/packages/snort/snort_dynamic_ip_reload.php
index 74b643f0..00e96d2e 100644
--- a/packages/snort/snort_dynamic_ip_reload.php
+++ b/packages/snort/snort_dynamic_ip_reload.php
@@ -3,11 +3,10 @@ require("/usr/local/pkg/snort.inc");
if($config['interfaces']['wan']['ipaddr'] == "pppoe" or
$config['interfaces']['wan']['ipaddr'] == "dhcp") {
+ log_error("Snort has detected an IP address change. Reloading.");
stop_service("snort");
create_snort_conf();
- sleep(1);
+ sleep(3);
start_service("snort");
-
-
}