summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_unbound.php
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2014-03-29 14:47:31 +0200
committerWarren Baker <warren@decoy.co.za>2014-03-29 14:47:31 +0200
commite91626775fa96214bd6c4819c22d8bb07af70f4e (patch)
treebc4f5039ea7e5a2a087950da45c6c33938d850e4 /usr/local/www/services_unbound.php
parent188609c6dcbb2d354748616657fa645dd912659c (diff)
downloadpfsense-e91626775fa96214bd6c4819c22d8bb07af70f4e.zip
pfsense-e91626775fa96214bd6c4819c22d8bb07af70f4e.tar.gz
Dont unnecessarily unset
Diffstat (limited to 'usr/local/www/services_unbound.php')
-rw-r--r--usr/local/www/services_unbound.php8
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.");
OpenPOWER on IntegriCloud