net/haproxy: ACL "Host contains" should use hdr_sub instead of hdr_dir

This commit is contained in:
Frank Wall 2017-01-24 12:15:03 +01:00 committed by Franco Fichtner
parent 75175c10df
commit ed5ea4e352

View file

@ -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