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

This commit is contained in:
Frank Wall
2017-01-03 22:07:06 +01:00
committed by Franco Fichtner
parent 671b2200b9
commit a55167775b
@@ -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 #}