update cors status every 10 minutes

This commit is contained in:
creeper123123321 2021-02-09 16:01:53 -03:00 committed by GitHub
parent 60edb57bcc
commit 462d9ffb45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,8 @@ function setCorsProxy(url) {
refreshCorsStatus(); refreshCorsStatus();
} }
refreshCorsStatus(); // Heroku sleeps in 30 minutes, let's call it every 10 minutes to keep the same address, so Mojang see it as less suspect
setInterval(refreshCorsStatus, 10 * 60 * 1000);
function loginMc(user, pass) { function loginMc(user, pass) {
var clientToken = uuid.v4(); var clientToken = uuid.v4();