From cf79473fad96dbac083522646dfcc1018fcc075c Mon Sep 17 00:00:00 2001 From: WebStreamr <210764791+webstreamr@users.noreply.github.com> Date: Thu, 4 Sep 2025 08:06:54 +0000 Subject: [PATCH] chore: allow forcing the IP check in the /live endpoint --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 23ef41e..aba3c89 100644 --- a/src/index.ts +++ b/src/index.ts @@ -123,7 +123,7 @@ addon.get('/live', async (req: Request, res: Response) => { } }); - if (Date.now() - lastLiveProbeRequestsTimestamp > 60000) { // every minute + if (Date.now() - lastLiveProbeRequestsTimestamp > 60000 || 'forceIpCheck' in req.query) { // every minute await Promise.all(fetchFactories.map(fn => fn())); lastLiveProbeRequestsTimestamp = Date.now(); }