mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
Unbound: fixed configuration when custom blocks are used (#6756)
Signed-off-by: Evgeny Grin <k2k@narod.ru>
This commit is contained in:
parent
fa57bf6688
commit
ccddb825bc
@ -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}}
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
server:
|
||||
{% macro set_boolean(name) -%}
|
||||
{% if name == '1' %}yes{%else%}no{%endif%}
|
||||
{%- endmacro %}
|
||||
|
||||
@ -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') %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user