From 602accfba7d8657e76ad3f8d49199702542501f7 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Tue, 23 Nov 2021 10:17:51 +0100 Subject: [PATCH] fixed ipv6 access-control --- optional/unbound/unbound.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/optional/unbound/unbound.conf b/optional/unbound/unbound.conf index df0c76ff..3cb6b3f4 100644 --- a/optional/unbound/unbound.conf +++ b/optional/unbound/unbound.conf @@ -1,7 +1,7 @@ server: verbosity: 1 interface: 0.0.0.0 - {{ 'interface: ::0' if SUBNET6 }} +{{- ' interface: ::0' if SUBNET6 }} logfile: "" do-ip4: yes do-ip6: {{ 'yes' if SUBNET6 else 'no' }} @@ -9,7 +9,9 @@ server: do-tcp: yes do-daemonize: no access-control: {{ SUBNET }} allow - {{ 'access-control: {{ SUBNET6 }} allow' if SUBNET6 }} +{%- if SUBNET6 %} + access-control: {{ SUBNET6 }} allow +{%- endif %} directory: "/etc/unbound" username: unbound auto-trust-anchor-file: trusted-key.key