default options ping interval to 30s, with env override if desired

This commit is contained in:
Dave Horton committed 2021-12-14 12:28:02 -05:00
1 parent f642967f02
commit afbbed3f5c
1 file changed
+1 -1
+1 -1
View File
@@ -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() => {