(proxy) fix itereation issue with remoteblacklist

This commit is contained in:
Jos Schellevis 2015-07-02 10:55:34 +02:00
parent 7b274b9258
commit a8b9a6bcc4

View File

@ -193,13 +193,13 @@ http_access allow whiteList
http_access deny blackList
{% endif %}
{% if helpers.exists('OPNsense.proxy.forward.acl.remoteACLs.blacklists') %}
{% for blacklist in helpers.toList('OPNsense.proxy.forward.acl.remoteACLs.blacklists.blacklist') %}
{% if blacklist.enabled=='1' %}
{% for blacklist in helpers.toList('OPNsense.proxy.forward.acl.remoteACLs.blacklists.blacklist') if blacklist.enabled=='1' %}
{% if loop.first %}
# ACL list (Deny) remoteblacklist
http_access deny remoteblacklist
{% break %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}