Last fixes
This commit is contained in:
parent
d96b0c5d25
commit
6d237f2dcf
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue