diff --git a/net/haproxy/Makefile b/net/haproxy/Makefile index a473a835e..a4e34f02b 100644 --- a/net/haproxy/Makefile +++ b/net/haproxy/Makefile @@ -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 diff --git a/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/haproxy.conf b/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/haproxy.conf index e88254410..f3bf85ecf 100644 --- a/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/haproxy.conf +++ b/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/haproxy.conf @@ -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