chore: allow forcing the IP check in the /live endpoint
This commit is contained in:
parent
ff62ea0597
commit
cf79473fad
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue