mirror of
https://github.com/opnsense/plugins.git
synced 2026-06-03 13:59:06 -04:00
net/haproxy: ACL "Host contains" should use hdr_sub instead of hdr_dir
(cherry picked from commited5ea4e352) (cherry picked from commit8c5192c1fe)
This commit is contained in:
parent
75175c10df
commit
0d5125ad7f
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue