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

(cherry picked from commit ed5ea4e352)
(cherry picked from commit 8c5192c1fe)
This commit is contained in:
Frank Wall 2017-01-24 12:15:03 +01:00 committed by Franco Fichtner
parent 75175c10df
commit 0d5125ad7f
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
PLUGIN_NAME= haproxy
PLUGIN_VERSION= 1.10
PLUGIN_VERSION= 1.11
PLUGIN_COMMENT= Reliable, high performance TCP/HTTP load balancer
PLUGIN_DEPENDS= haproxy
PLUGIN_MAINTAINER= opnsense@moov.de

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