From afbbed3f5cbe86d603edcf6fc00e33815b59292b Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Tue, 14 Dec 2021 12:28:02 -0500 Subject: [PATCH] default options ping interval to 30s, with env override if desired --- lib/utils/sbc-pinger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/sbc-pinger.js b/lib/utils/sbc-pinger.js index 39d0884c..d539c90f 100644 --- a/lib/utils/sbc-pinger.js +++ b/lib/utils/sbc-pinger.js @@ -95,7 +95,7 @@ module.exports = (logger) => { setInterval(() => { const {srf} = require('../..'); pingProxies(srf); - }, 20000); + }, process.env.OPTIONS_PING_INTERVAL || 30000); // initial ping once we are up setTimeout(async() => {