Unbound: fixed configuration when custom blocks are used (#6756)

Signed-off-by: Evgeny Grin <k2k@narod.ru>
This commit is contained in:
Karlson2k 2023-08-18 16:50:20 +03:00 committed by GitHub
parent fa57bf6688
commit ccddb825bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,4 @@
server:
{% set default_action = OPNsense.unboundplus.acls.default_action|default('allow') %}
access-control: 0.0.0.0/0 {{default_action}}
access-control: ::/0 {{default_action}}

View File

@ -1,3 +1,4 @@
server:
{% macro set_boolean(name) -%}
{% if name == '1' %}yes{%else%}no{%endif%}
{%- endmacro %}

View File

@ -1,4 +1,5 @@
{% if not helpers.empty('OPNsense.unboundplus.domains.domain') or not helpers.empty('OPNsense.unboundplus.dots.dot') %}
server:
# Set private domains in case authoritative name server returns a Private IP address
{% set domains = [] %}
{% for domain in helpers.toList('OPNsense.unboundplus.domains.domain') %}