From 616e4136668abc7e341e9431f651b10b9e1c010a Mon Sep 17 00:00:00 2001 From: andrewheberle Date: Thu, 13 Sep 2018 06:54:12 +0800 Subject: [PATCH] Ensure http-reuse only applies to http backend --- .../opnsense/service/templates/OPNsense/HAProxy/haproxy.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 89563df8e..5ed67d2c2 100644 --- a/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/haproxy.conf +++ b/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/haproxy.conf @@ -1032,7 +1032,7 @@ backend {{backend.name}} {{customOpt}} {% endfor %} {% endif %} -{% if backend.tuning_httpreuse|default("") != "" %} +{% if backend.tuning_httpreuse|default("") != "" and backend.mode == "http" %} http-reuse {{backend.tuning_httpreuse}} {% endif %} {% if backend.tuning_defaultserver|default("") != "" %}