mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
unbound: automatically add do-not-query-localhost: no on DoT when needed
This commit is contained in:
parent
eb72ff6d8a
commit
2fa400beca
@ -1,13 +1,20 @@
|
||||
{% if not helpers.empty('OPNsense.unboundplus.dots.dot') %}
|
||||
{% set dots = [] %}
|
||||
{% set local = [] %}
|
||||
{% for dot in helpers.toList('OPNsense.unboundplus.dots.dot') %}
|
||||
{% if dot.enabled == '1' %}
|
||||
{% if dot.server.startswith('127.') or dot.server == '::1' %}
|
||||
{% do local.append('1') %}
|
||||
{% endif %}
|
||||
{% do dots.append(dot) %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if dots|length > 0 %}
|
||||
server:
|
||||
tls-cert-bundle: /etc/ssl/cert.pem
|
||||
{% if local|length > 0 %}
|
||||
do-not-query-localhost: no
|
||||
{% endif %}
|
||||
forward-zone:
|
||||
name: "."
|
||||
forward-tls-upstream: yes
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user