Last fixes

This commit is contained in:
Sefinek 2025-03-21 10:30:44 +01:00
parent d96b0c5d25
commit 6d237f2dcf

View file

@ -54,11 +54,11 @@ const fetchLocalIPs = () => {
const refreshServerIPs = async () => { const refreshServerIPs = async () => {
await Promise.all([fetchIPAddress(4), fetchIPAddress(6)]); await Promise.all([fetchIPAddress(4), fetchIPAddress(6)]);
fetchLocalIPs();
}; };
(async () => { (async () => {
new CronJob(CYCLES.IP_REFRESH_SCHEDULE || '0 */6 * * *', refreshServerIPs, null, true, 'UTC'); new CronJob(CYCLES.IP_REFRESH_SCHEDULE || '0 */6 * * *', refreshServerIPs, null, true, 'UTC');
await refreshServerIPs();
})(); })();
module.exports = { module.exports = {