mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
unbound: fix two undefined variable warnings
This commit is contained in:
parent
a02b07a908
commit
8db197ebe8
@ -131,6 +131,7 @@ function unbound_generate_config()
|
||||
$anchor_file = 'auto-trust-anchor-file: /var/unbound/root.key';
|
||||
} else {
|
||||
$module_config .= 'iterator';
|
||||
$anchor_file = '';
|
||||
}
|
||||
|
||||
$qnameminstrict = '';
|
||||
@ -589,7 +590,7 @@ function unbound_add_host_entries($ifconfig_details = null)
|
||||
$unbound_entries .= "local-data-ptr: \"{$host['ipaddrv6']} {$host['hostname']}.{$host['domain']}\"\n";
|
||||
$unbound_entries .= "local-data: \"{$host['hostname']}.{$host['domain']} IN AAAA {$host['ipaddrv6']}\"\n";
|
||||
}
|
||||
if (!empty($host['descr']) && $unboundcfg['txtsupport'] == 'on') {
|
||||
if (!empty($host['descr']) && isset($config['unbound']['txtsupport'])) {
|
||||
$unbound_entries .= "local-data: '{$host['hostname']}.{$host['domain']} TXT \"" . addslashes($host['descr']) . "\"'\n";
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user