1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-08-10 22:31:47 +02:00

fixed ipv6 access-control

This commit is contained in:
Alexander Graf
2021-11-23 10:17:51 +01:00
parent f2fac2fd1b
commit 602accfba7

View File

@@ -1,7 +1,7 @@
server: server:
verbosity: 1 verbosity: 1
interface: 0.0.0.0 interface: 0.0.0.0
{{ 'interface: ::0' if SUBNET6 }} {{- ' interface: ::0' if SUBNET6 }}
logfile: "" logfile: ""
do-ip4: yes do-ip4: yes
do-ip6: {{ 'yes' if SUBNET6 else 'no' }} do-ip6: {{ 'yes' if SUBNET6 else 'no' }}
@@ -9,7 +9,9 @@ server:
do-tcp: yes do-tcp: yes
do-daemonize: no do-daemonize: no
access-control: {{ SUBNET }} allow access-control: {{ SUBNET }} allow
{{ 'access-control: {{ SUBNET6 }} allow' if SUBNET6 }} {%- if SUBNET6 %}
access-control: {{ SUBNET6 }} allow
{%- endif %}
directory: "/etc/unbound" directory: "/etc/unbound"
username: unbound username: unbound
auto-trust-anchor-file: trusted-key.key auto-trust-anchor-file: trusted-key.key