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 91cc336d4..a45bdbc1c 100644 --- a/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/haproxy.conf +++ b/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/haproxy.conf @@ -652,7 +652,7 @@ backend {{backend.name}} {# # health check option #} {% set healthcheck_options = [] %} {% if healthcheck_data.type|default("") == "" %} -{% set healthcheck_enabled = '1' %} +{% set healthcheck_enabled = '0' %} {% elif healthcheck_data.type == 'tcp' %} {# # TCP check does not require additional options #} {% elif healthcheck_data.type == 'http' %} @@ -768,7 +768,7 @@ backend {{backend.name}} {% set server_data = helpers.getUUID(server) %} {# # collect optional server parameters #} {% set server_options = [] %} -{# if# check if health check is enabled #}("") != "" %} +{# # check if health check is enabled # %} {% if healthcheck_enabled == '1' %} {% do server_options.append('check') %} {% do server_options.append('inter ' ~ server_data.checkInterval) %}