net/haproxy: unbreak if frontend mode is set to ssl

This commit is contained in:
Frank Wall 2016-12-29 20:33:58 +01:00 committed by Franco Fichtner
parent 671b2200b9
commit a55167775b

View file

@ -580,8 +580,12 @@ frontend {{frontend.name}}
{% endfor %}
{% endif %}
{% if frontend.mode == "ssl" %}
mode tcp
{% else %}
mode {{frontend.mode}}
{% if frontend.mode != "tcp" %}
{% endif %}
{% if frontend.mode != "tcp" and frontend.mode != "ssl" %}
option {{frontend.connectionBehaviour}}
{% endif %}
{# # select backend #}