diff options
author | Warren Baker <warren@decoy.co.za> | 2014-03-29 14:47:31 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2014-03-29 14:47:31 +0200 |
commit | e91626775fa96214bd6c4819c22d8bb07af70f4e (patch) | |
tree | bc4f5039ea7e5a2a087950da45c6c33938d850e4 | |
parent | 188609c6dcbb2d354748616657fa645dd912659c (diff) | |
download | pfsense-e91626775fa96214bd6c4819c22d8bb07af70f4e.zip pfsense-e91626775fa96214bd6c4819c22d8bb07af70f4e.tar.gz |
Dont unnecessarily unset
-rw-r--r-- | usr/local/www/services_unbound.php | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/usr/local/www/services_unbound.php b/usr/local/www/services_unbound.php index 2b57691..16bacc9 100644 --- a/usr/local/www/services_unbound.php +++ b/usr/local/www/services_unbound.php @@ -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."); |