summaryrefslogtreecommitdiffstats
path: root/etc/inc/unbound.inc
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2014-03-20 21:33:20 +0200
committerWarren Baker <warren@decoy.co.za>2014-03-20 21:34:00 +0200
commitd12889b0c2df03deb6d499f0c379005e5870b628 (patch)
treef318d9800e0161952b76bd29ec6cec5c45cd7f73 /etc/inc/unbound.inc
parentfff4a9d10ce09a0ab43aea991b82e22810789eff (diff)
downloadpfsense-d12889b0c2df03deb6d499f0c379005e5870b628.zip
pfsense-d12889b0c2df03deb6d499f0c379005e5870b628.tar.gz
Ensure if port is configured it is then used
Diffstat (limited to 'etc/inc/unbound.inc')
-rw-r--r--etc/inc/unbound.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/unbound.inc b/etc/inc/unbound.inc
index 3f3a369..2015066 100644
--- a/etc/inc/unbound.inc
+++ b/etc/inc/unbound.inc
@@ -4,7 +4,7 @@
part of the pfSense project (https://www.pfsense.org)
originally part of m0n0wall (http://m0n0.ch/wall)
- Copyright (C) 2014 Warren Baker <warren@decoy.co.za>
+ Copyright (C) 2014 Warren Baker <warren@decoy.co.za>
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -152,6 +152,7 @@ EOF;
}
// Server configuration variables
+ $port = (is_port($config['unbound']['port'])) ? $config['unbound']['port'] : "53";
$hide_id = ($config['unbound']['hide_id'] == "on") ? "yes" : "no";
$hide_version = ($config['unbound']['hide_version'] == "on") ? "yes" : "no";
$harden_glue = ($config['unbound']['harden_glue'] == "on") ? "yes" : "no";
@@ -185,7 +186,7 @@ username: "unbound"
directory: "{$g['unbound_chroot_path']}"
pidfile: "/var/run/unbound.pid"
use-syslog: yes
-port: 53
+port: {$port}
verbosity: {$verbosity}
harden-referral-path: no
do-ip4: yes
OpenPOWER on IntegriCloud