Brozy123 commited on
Commit
3bb7a38
·
verified ·
1 Parent(s): 8a8ccbf

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +3 -0
index.js CHANGED
@@ -1394,5 +1394,8 @@ client.login(TOKEN).catch(e => {
1394
  console.error(`[!] Login Failed:`, e);
1395
  console.log("[*] Retrying login with rotated endpoint...");
1396
  networkFix.rotateEndpoint();
 
 
 
1397
  setTimeout(() => client.login(TOKEN).catch(() => {}), 5000);
1398
  });
 
1394
  console.error(`[!] Login Failed:`, e);
1395
  console.log("[*] Retrying login with rotated endpoint...");
1396
  networkFix.rotateEndpoint();
1397
+ if (client.rest) {
1398
+ client.rest.options.api = `https://${networkFix.getTargetDomain()}/api`;
1399
+ }
1400
  setTimeout(() => client.login(TOKEN).catch(() => {}), 5000);
1401
  });