aboutsummaryrefslogtreecommitdiffstats
path: root/config/unbound/unbound.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/unbound/unbound.inc')
-rw-r--r--config/unbound/unbound.inc9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/unbound/unbound.inc b/config/unbound/unbound.inc
index ebe8fbdf..8d33e456 100644
--- a/config/unbound/unbound.inc
+++ b/config/unbound/unbound.inc
@@ -477,6 +477,15 @@ control-cert-file: "/usr/local/etc/unbound/unbound_control.pem"
EOD;
+ # Handle custom options
+ if(!empty($unbound_config['custom_options'])) {
+ $custom_options = explode(";", ($unbound_config['custom_options']));
+ $unbound_conf .= "# Unbound Custom options\n";
+ foreach ($custom_options as $ent) {
+ $unbound_conf .= $ent."\n";
+ }
+ }
+
file_put_contents("/usr/local/etc/unbound/unbound.conf", $unbound_conf);
}