diff options
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 ### |