From f3a5f0c586405f127045bea1a12ea79fe374a9fa Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 21 Jun 2006 00:27:49 +0000 Subject: [PATCH] If remote syslog is unchecked, clear the ip address from the remote syslog box. --- usr/local/www/diag_logs_settings.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr/local/www/diag_logs_settings.php b/usr/local/www/diag_logs_settings.php index b7b2a0e83b..41c90ed544 100755 --- a/usr/local/www/diag_logs_settings.php +++ b/usr/local/www/diag_logs_settings.php @@ -76,6 +76,8 @@ if ($_POST) { $oldnologdefaultblock = isset($config['syslog']['nologdefaultblock']); $config['syslog']['nologdefaultblock'] = $_POST['logdefaultblock'] ? false : true; $config['syslog']['rawfilter'] = $_POST['rawfilter'] ? true : false; + if($config['syslog']['enable'] == false) + unset($config['syslog']['remoteserver']); write_config();