diff options
author | Warren Baker <warren@decoy.co.za> | 2014-02-26 22:40:10 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2014-02-26 22:40:10 +0200 |
commit | 464a48605e7e8edfe0b2476ac66deb23e937dc3f (patch) | |
tree | 44b82d9523e184ac8b04d2117407a642287d1c85 /config/unbound/unbound.inc | |
parent | 2601bbd01ecb65bbbcf7f71b42aac62374561f97 (diff) | |
download | pfsense-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.
Diffstat (limited to 'config/unbound/unbound.inc')
-rw-r--r-- | config/unbound/unbound.inc | 17 |
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 ### |