aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2014-02-26 22:40:10 +0200
committerWarren Baker <warren@decoy.co.za>2014-02-26 22:40:10 +0200
commit464a48605e7e8edfe0b2476ac66deb23e937dc3f (patch)
tree44b82d9523e184ac8b04d2117407a642287d1c85
parent2601bbd01ecb65bbbcf7f71b42aac62374561f97 (diff)
downloadpfsense-packages-464a48605e7e8edfe0b2476ac66deb23e937dc3f.tar.gz
pfsense-packages-464a48605e7e8edfe0b2476ac66deb23e937dc3f.tar.bz2
pfsense-packages-464a48605e7e8edfe0b2476ac66deb23e937dc3f.zip
Custom options should be before forward-zone as seen on the forum.
-rw-r--r--config/unbound/unbound.inc17
1 files changed, 8 insertions, 9 deletions
diff --git a/config/unbound/unbound.inc b/config/unbound/unbound.inc
index e47a720f..342b1f2b 100644
--- a/config/unbound/unbound.inc
+++ b/config/unbound/unbound.inc
@@ -541,6 +541,14 @@ access-control: ::1 allow
EOD;
+ # Handle custom options
+ if (!empty($adv_config['custom_options'])) {
+ $custom_options = explode(";", ($adv_config['custom_options']));
+ $unbound_conf .= "\n# Unbound Custom options\n";
+ foreach ($custom_options as $ent)
+ $unbound_conf .= $ent."\n";
+ }
+
// Set up forward-zones if configured
if ($unbound_config['forwarding_mode'] == "on") {
$dnsservers = array();
@@ -569,15 +577,6 @@ EOD;
}
}
-
- # Handle custom options
- if (!empty($adv_config['custom_options'])) {
- $custom_options = explode(";", ($adv_config['custom_options']));
- $unbound_conf .= "\n# Unbound Custom options\n";
- foreach ($custom_options as $ent)
- $unbound_conf .= $ent."\n";
- }
-
$unbound_conf .= <<<EOD
###