diff --git a/src/etc/inc/plugins.inc.d/unbound.inc b/src/etc/inc/plugins.inc.d/unbound.inc index f6eec0f48..12e715fb5 100644 --- a/src/etc/inc/plugins.inc.d/unbound.inc +++ b/src/etc/inc/plugins.inc.d/unbound.inc @@ -572,7 +572,7 @@ function unbound_add_host_entries() $unbound_entries .= "local-data: \"{$config['system']['hostname']}.{$config['system']['domain']} AAAA {$laddr6}\"\n"; $unbound_entries .= "local-data: \"{$config['system']['hostname']} AAAA {$laddr6}\"\n"; } - if (!isset($config['unbound']['reglladdr6'])) { + if (empty($config['unbound']['noreglladdr6'])) { $lladdr6 = find_interface_ipv6_ll($if); if (is_ipaddrv6($lladdr6)) { $unbound_entries .= "local-data: \"{$config['system']['hostname']}.{$config['system']['domain']} AAAA {$lladdr6}\"\n"; diff --git a/src/www/services_unbound.php b/src/www/services_unbound.php index c2204fda6..2f74ae385 100644 --- a/src/www/services_unbound.php +++ b/src/www/services_unbound.php @@ -43,7 +43,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { $pconfig['enable'] = isset($a_unboundcfg['enable']); $pconfig['dnssec'] = isset($a_unboundcfg['dnssec']); $pconfig['forwarding'] = isset($a_unboundcfg['forwarding']); - $pconfig['reglladdr6'] = isset($a_unboundcfg['reglladdr6']); + $pconfig['reglladdr6'] = empty($a_unboundcfg['noreglladdr6']); $pconfig['regdhcp'] = isset($a_unboundcfg['regdhcp']); $pconfig['regdhcpstatic'] = isset($a_unboundcfg['regdhcpstatic']); $pconfig['txtsupport'] = isset($a_unboundcfg['txtsupport']); @@ -103,7 +103,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { $a_unboundcfg['enable'] = !empty($pconfig['enable']); $a_unboundcfg['dnssec'] = !empty($pconfig['dnssec']); $a_unboundcfg['forwarding'] = !empty($pconfig['forwarding']); - $a_unboundcfg['reglladdr6'] = !empty($pconfig['reglladdr6']); + $a_unboundcfg['noreglladdr6'] = empty($pconfig['reglladdr6']); $a_unboundcfg['regdhcp'] = !empty($pconfig['regdhcp']); $a_unboundcfg['regdhcpstatic'] = !empty($pconfig['regdhcpstatic']); $a_unboundcfg['txtsupport'] = !empty($pconfig['txtsupport']); @@ -236,7 +236,7 @@ include_once("head.inc");