Skip to content

Commit

Permalink
dns/bind: Fix handling of multiple ACLs in allow-query/allow-transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
NHellFire authored and fichtner committed Jun 20, 2024
1 parent 6169517 commit be43869
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand All @@ -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 %}
Expand Down

0 comments on commit be43869

Please sign in to comment.