diff --git a/src/application.coffee b/src/application.coffee index ab0fc57f..22176897 100644 --- a/src/application.coffee +++ b/src/application.coffee @@ -313,7 +313,7 @@ specialActionEnvVars = 'RESIN_SUPERVISOR_HANDOVER_TIMEOUT': null 'RESIN_SUPERVISOR_OVERRIDE_LOCK': null 'RESIN_SUPERVISOR_VPN_CONTROL': utils.vpnControl - 'RESIN_SUPERVISOR_CONNECTIVITY_CHECK': utils.connectivityCheck + 'RESIN_SUPERVISOR_CONNECTIVITY_CHECK': utils.enableConnectivityCheck 'RESIN_SUPERVISOR_POLL_INTERVAL': apiPollInterval 'RESIN_SUPERVISOR_LOG_CONTROL': utils.resinLogControl diff --git a/src/utils.coffee b/src/utils.coffee index b47494b7..460acf0a 100644 --- a/src/utils.coffee +++ b/src/utils.coffee @@ -141,7 +141,7 @@ exports.extendEnvVars = (env, uuid) -> return Promise.props(newEnv) # Callback function to enable/disable tcp pings -exports.connectivityCheck = (val) -> +exports.enableConnectivityCheck = (val) -> bool = val is 'false' disableCheck(bool) console.log("Connectivity check enabled: #{not bool}")