aboutsummaryrefslogtreecommitdiffstats
path: root/config/unbound
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2011-01-16 21:19:10 +0200
committerWarren Baker <warren@decoy.co.za>2011-01-16 21:19:10 +0200
commitc4b8dfa612ec4d5e955168647375d7b7a1d642e3 (patch)
tree40ed01f2a71191712a27777c1f32a61a75ebaf58 /config/unbound
parente54808493836059fad555f658632ca597d762c85 (diff)
downloadpfsense-packages-c4b8dfa612ec4d5e955168647375d7b7a1d642e3.tar.gz
pfsense-packages-c4b8dfa612ec4d5e955168647375d7b7a1d642e3.tar.bz2
pfsense-packages-c4b8dfa612ec4d5e955168647375d7b7a1d642e3.zip
First check to see if previous config before choosing listening interfaces.
Diffstat (limited to 'config/unbound')
-rw-r--r--config/unbound/unbound.inc14
1 files changed, 9 insertions, 5 deletions
diff --git a/config/unbound/unbound.inc b/config/unbound/unbound.inc
index 218f750c..435a1073 100644
--- a/config/unbound/unbound.inc
+++ b/config/unbound/unbound.inc
@@ -66,11 +66,15 @@ function unbound_initial_setup() {
// Setup rc file for startup and shutdown.
unbound_rc_setup();
- // Set initial interfaces that are allowed to query to lan, if that does not exist set it to the wan
- if(count($config['interfaces']) > 1)
- $unbound_config['active_interface'] = "lan";
- else
- $unbound_config['active_interface'] = "wan";
+ /* Check to see if Set initial interfaces that are allowed to query to lan, if that does not exist set it to the wan
+ *
+ */
+ if(!isset($unbound_config['active_interface'])) {
+ if(count($config['interfaces']) > 1)
+ $unbound_config['active_interface'] = "lan";
+ else
+ $unbound_config['active_interface'] = "wan";
+ }
unbound_anchor_setup();
unbound_resync_config();