diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-06-21 00:27:49 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-06-21 00:27:49 +0000 |
commit | f3a5f0c586405f127045bea1a12ea79fe374a9fa (patch) | |
tree | 7876c46e36f7355b3389688a09ed8929aa73a704 /usr/local/www/diag_logs_settings.php | |
parent | e15ebe193d2af19cf9d9f07fd14d6b93d68f0632 (diff) | |
download | pfsense-f3a5f0c586405f127045bea1a12ea79fe374a9fa.zip pfsense-f3a5f0c586405f127045bea1a12ea79fe374a9fa.tar.gz |
If remote syslog is unchecked, clear the ip address from the remote syslog box.
Diffstat (limited to 'usr/local/www/diag_logs_settings.php')
-rwxr-xr-x | usr/local/www/diag_logs_settings.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/diag_logs_settings.php b/usr/local/www/diag_logs_settings.php index b7b2a0e..41c90ed 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(); |