net/haproxy: fix invalid use of option httplog

This resolves the infamous warning:
'option httplog' not usable with frontend (needs 'mode http')
This commit is contained in:
Frank Wall 2020-04-14 23:53:17 +02:00
parent 25c3c1ffab
commit cf179b19ad

View file

@ -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