chore: allow forcing the IP check in the /live endpoint

This commit is contained in:
WebStreamr 2025-09-04 08:06:54 +00:00
parent ff62ea0597
commit cf79473fad
No known key found for this signature in database

View file

@ -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();
}