diff options
author | Warren Baker <warren@decoy.co.za> | 2012-04-05 15:08:29 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2012-04-05 15:08:29 +0200 |
commit | 89fd3ed36f25147140c3a3ff9c05bd3ef8e05c46 (patch) | |
tree | f26cdcf41faa420f071a13f786606978aa9a4293 /etc/inc/unbound.inc | |
parent | 4b7ea18177ec732f2dd55fcf4fb86d2b504808ef (diff) | |
download | pfsense-89fd3ed36f25147140c3a3ff9c05bd3ef8e05c46.zip pfsense-89fd3ed36f25147140c3a3ff9c05bd3ef8e05c46.tar.gz |
Use isset() for DNSSEC status
Diffstat (limited to 'etc/inc/unbound.inc')
-rw-r--r-- | etc/inc/unbound.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/unbound.inc b/etc/inc/unbound.inc index 602f3e4..94e899b 100644 --- a/etc/inc/unbound.inc +++ b/etc/inc/unbound.inc @@ -218,7 +218,7 @@ EOF; /* Generate Unbound configuration */ function unbound_generate_config() { - global $config,$g; + global $config, $g; $unboundcfg = $config['unbound']; @@ -226,7 +226,7 @@ function unbound_generate_config() { $optimization = unbound_optimization(); /* Setup DNSSEC support */ - if($unboundcfg['dnssec_status'] == "on") { + if(isset($unboundcfg['dnssec_status'])) { $module_config = "validator iterator"; $anchor_file = "auto-trust-anchor-file: /etc/root-trust-anchor"; } else |