diff --git a/lib/fs-tracking.js b/lib/fs-tracking.js index f624863..b9e7ab2 100644 --- a/lib/fs-tracking.js +++ b/lib/fs-tracking.js @@ -49,6 +49,15 @@ module.exports = (srf, logger) => { } }); + if (process.env.JAMBONES_FEATURE_SERVERS) { + dynamic = false; + process.env.JAMBONES_FEATURE_SERVERS + .split(',') + .map((hp) => hp.trim()) + .forEach((uri) => contacts.set(uri, {active: 0, calls: 0})); + debug(`using static list of feature servers: ${[ ...contacts]}`); + } + if (dynamic) { const CHECK_INTERVAL = 35; setInterval(() => {