From 0d5125ad7fec3bfa93d577abec781633846f2dc3 Mon Sep 17 00:00:00 2001 From: Frank Wall Date: Tue, 24 Jan 2017 12:15:03 +0100 Subject: [PATCH] net/haproxy: ACL "Host contains" should use hdr_sub instead of hdr_dir (cherry picked from commit ed5ea4e352f14c45a82c9fe74c79ea1e5a34b5a4) (cherry picked from commit 8c5192c1fe301227b68b60ba759f0f0a737d3cac) --- net/haproxy/Makefile | 2 +- .../opnsense/service/templates/OPNsense/HAProxy/haproxy.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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