dns/bind: Fix handling of multiple ACLs in allow-query/allow-transfer

This commit is contained in:
Nathan Rennie-Waldock
2024-06-20 08:43:04 +02:00
committed by Franco Fichtner
parent 616951739f
commit be43869f31
@@ -58,7 +58,7 @@ options {
{% if helpers.exists('OPNsense.bind.general.allowtransfer') and OPNsense.bind.general.allowtransfer != '' %}
allow-transfer {
{% for acl in helpers.toList('OPNsense.bind.general.allowtransfer') %}
{% for acl in OPNsense.bind.general.allowtransfer.split(',') %}
{% set transfer_acl = helpers.getUUID(acl) %}
{{ transfer_acl.name }};
{% endfor %}
@@ -67,7 +67,7 @@ options {
{% if helpers.exists('OPNsense.bind.general.allowquery') and OPNsense.bind.general.allowquery != '' %}
allow-query {
{% for acl in helpers.toList('OPNsense.bind.general.allowquery') %}
{% for acl in OPNsense.bind.general.allowquery.split(',') %}
{% set query_acl = helpers.getUUID(acl) %}
{{ query_acl.name }};
{% endfor %}