mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/haproxy: fix ACL negation not working, fixes #30
This commit is contained in:
@@ -43,7 +43,12 @@
|
||||
{% for acl in action_data.linkedAcls.split(",") %}
|
||||
{% set acl_data = helpers.getUUID(acl) %}
|
||||
{% set acl_enabled = '1' %}
|
||||
{% do action_acls.append('acl_' ~ acl_data.id) %}
|
||||
{# # first check if this ACL condition should be negated #}
|
||||
{% if acl_data.negate|default("") == '1' %}
|
||||
{% do action_acls.append('!acl_' ~ acl_data.id) if acl_data.negate|default("") == '1' %}
|
||||
{% else %}
|
||||
{% do action_acls.append('acl_' ~ acl_data.id) %}
|
||||
{% endif %}
|
||||
{# # check if this ACL was already defined in this scope #}
|
||||
{% if acl_data.id in acls_seen %}
|
||||
{# # DEBUG: ignoring duplicate ACL {{acl_data.name}} #}
|
||||
|
||||
Reference in New Issue
Block a user