summaryrefslogtreecommitdiffstats
path: root/etc/inc/unbound.inc
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2014-03-29 08:09:43 +0200
committerWarren Baker <warren@decoy.co.za>2014-03-29 08:09:43 +0200
commit1b6e3c30fb1b48d8a7d95f4db61f93db6dce2079 (patch)
treec16820e8654eacc4c8a82abc9967f9bb02ed3f54 /etc/inc/unbound.inc
parent80948260a13a481a1f285f3754af32051a928b5e (diff)
downloadpfsense-1b6e3c30fb1b48d8a7d95f4db61f93db6dce2079.zip
pfsense-1b6e3c30fb1b48d8a7d95f4db61f93db6dce2079.tar.gz
Ensure TXT support on host descriptions actually works
Diffstat (limited to 'etc/inc/unbound.inc')
-rw-r--r--etc/inc/unbound.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/unbound.inc b/etc/inc/unbound.inc
index 68f60bb..0cc6046 100644
--- a/etc/inc/unbound.inc
+++ b/etc/inc/unbound.inc
@@ -485,7 +485,7 @@ function unbound_add_host_entries() {
$host_entries .= "local-data: \"{$host['host']}{$host['domain']} IN AAAA {$host['ip']}\"\n";
else
$host_entries .= "local-data: \"{$host['host']}{$host['domain']} IN A {$host['ip']}\"\n";
- if (!empty($host['descr']) && $dnscfg['txtsupport'] == 'on')
+ if (!empty($host['descr']) && isset($config['unbound']['txtsupport']))
$host_entries .= "local-data: '{$host['host']}{$host['domain']} TXT \"".addslashes($host['descr'])."\"'\n";
// Do not add duplicate entries
OpenPOWER on IntegriCloud