Don't start IP ranges renewal timer when fetching is disabled

IP_RANGES_FETCH_ENABLED=false only skipped the initial fetch; the
renewal timer still fetched the ranges every 6 hours.

Fixes #5748
This commit is contained in:
Prassanth
2026-10-02 02:08:28 +05:30
parent 2dfd691169
commit 77dfc3d3c1
+3 -1
View File
@@ -26,7 +26,9 @@ async function appStart() {
})
.then(() => {
internalCertificate.initTimer();
internalIpRanges.initTimer();
if (IP_RANGES_FETCH_ENABLED) {
internalIpRanges.initTimer();
}
const server = app.listen(3000, () => {
logger.info(`Backend PID ${process.pid} listening on port 3000 ...`);