dns/bind: fix handling of multiple ACLs in allow-recursion (#4085)

Same fix as #4048 but for allow-recursion
This commit is contained in:
Jordan Stacy
2024-07-10 22:03:02 -07:00
committed by GitHub
parent d777a60592
commit e6dfbfd751
@@ -49,7 +49,7 @@ options {
{% if helpers.exists('OPNsense.bind.general.recursion') and OPNsense.bind.general.recursion != '' %}
recursion yes;
allow-recursion {
{% for acl in helpers.toList('OPNsense.bind.general.recursion') %}
{% for acl in OPNsense.bind.general.recursion.split(',') %}
{% set recursion_acl = helpers.getUUID(acl) %}
{{ recursion_acl.name }};
{% endfor %}