mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/haproxy: ACL "Host contains" should use hdr_sub instead of hdr_dir
This commit is contained in:
committed by
Franco Fichtner
parent
75175c10df
commit
ed5ea4e352
@@ -86,7 +86,7 @@
|
||||
{% endif %}
|
||||
{% elif acl_data.expression == 'host_contains' %}
|
||||
{% if acl_data.value|default("") != "" %}
|
||||
{% do acl_options.append('hdr_dir(host) -i ' ~ acl_data.value) %}
|
||||
{% do acl_options.append('hdr_sub(host) -i ' ~ acl_data.value) %}
|
||||
{% else %}
|
||||
{% set acl_enabled = '0' %}
|
||||
# ERROR: missing parameters
|
||||
|
||||
Reference in New Issue
Block a user