mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Dont unnecessarily unset
This commit is contained in:
parent
188609c6dc
commit
e91626775f
@ -99,17 +99,9 @@ if ($_POST) {
|
||||
$a_unboundcfg['txtsupport'] = ($_POST['txtsupport']) ? true : false;
|
||||
if (is_array($_POST['active_interface']) && !empty($_POST['active_interface']))
|
||||
$a_unboundcfg['active_interface'] = implode(",", $_POST['active_interface']);
|
||||
else if (isset($config['unbound']['active_interface'])) {
|
||||
unset($config['unbound']['active_interface']);
|
||||
$pconfig['active_interface'] = array();
|
||||
}
|
||||
|
||||
if (is_array($_POST['outgoing_interface']) && !empty($_POST['outgoing_interface']))
|
||||
$a_unboundcfg['outgoing_interface'] = implode(",", $_POST['outgoing_interface']);
|
||||
else if (isset($config['unbound']['outgoing_interface'])) {
|
||||
unset($config['unbound']['outgoing_interface']);
|
||||
$pconfig['outgoing_interface'] = array();
|
||||
}
|
||||
|
||||
if (!$input_errors) {
|
||||
write_config("DNS Resolver configured.");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user