From cf179b19ad71c919f6c69c99e4e7b00d8236d9c9 Mon Sep 17 00:00:00 2001 From: Frank Wall Date: Tue, 14 Apr 2020 23:53:17 +0200 Subject: [PATCH] net/haproxy: fix invalid use of option httplog This resolves the infamous warning: 'option httplog' not usable with frontend (needs 'mode http') --- .../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 0574f0a45..1e47bd478 100644 --- a/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/haproxy.conf +++ b/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/haproxy.conf @@ -1119,7 +1119,7 @@ frontend {{frontend.name}} {% endif %} {% if frontend.logging_detailedLog=='1' %} {# # automatically select the best-suited log type #} -{% if frontend.mode == 'tcp' %} +{% if frontend.mode == 'tcp' or frontend.mode == 'ssl' %} option tcplog {% else %} option httplog