Revision ec074cb5
Added by Christian McDonald 6 months ago
src/etc/inc/unbound.inc | ||
---|---|---|
778 | 778 |
function unbound_add_host_entries($cfgsubdir = "") { |
779 | 779 |
global $g, $nooutifs; |
780 | 780 |
|
781 |
/* Only keep entries that make sense for DNS |
|
782 |
* https://redmine.pfsense.org/issues/16035 */ |
|
781 | 783 |
$hosts = system_hosts_entries(config_get_path('unbound', [])); |
784 |
$hosts = array_filter($hosts, fn($host) => !is_linklocal($host['ipaddr'])); |
|
782 | 785 |
|
783 | 786 |
/* Pass 1: Build domain list and hosts inside domains */ |
784 | 787 |
$hosts_by_domain = array(); |
Also available in: Unified diff
unbound: filter link-local addrs from host_entries.conf. Fixes #16035