mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-14 10:53:30 +02:00
Merge #2063
2063: fixed ipv6 access-control r=mergify[bot] a=ghostwheel42 ## What type of PR? bug-fix ## What does this PR do? fixes access-control for SUBNET6 Co-authored-by: Alexander Graf <ghostwheel42@users.noreply.github.com>
This commit is contained in:
commit
35e3cc9f81
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user