If remote syslog is unchecked, clear the ip address from the remote syslog box.

This commit is contained in:
Scott Ullrich 2006-06-21 00:27:49 +00:00
parent e15ebe193d
commit f3a5f0c586

View File

@ -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();