Commit 217892dc authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent c24b1790
...@@ -84,6 +84,7 @@ async function checkIps() { ...@@ -84,6 +84,7 @@ async function checkIps() {
for (let i = 0; i < ips.length; i++) { for (let i = 0; i < ips.length; i++) {
let status = await getWorkFloating(ips[i].Value) let status = await getWorkFloating(ips[i].Value)
await slee
status = parseInt(status) status = parseInt(status)
switch (status) { switch (status) {
case 404: case 404:
...@@ -95,6 +96,7 @@ async function checkIps() { ...@@ -95,6 +96,7 @@ async function checkIps() {
case 0: case 0:
await aruba.RemovedByIp(ips[i].Value) await aruba.RemovedByIp(ips[i].Value)
break break
case 1: case 1:
// await addIPs(ips[i].Value) // await addIPs(ips[i].Value)
break break
...@@ -104,6 +106,11 @@ async function checkIps() { ...@@ -104,6 +106,11 @@ async function checkIps() {
} }
} }
async function sleep(millis) {
return new Promise(resolve => setTimeout(resolve, millis));
}
async function initToken() { async function initToken() {
await aruba.init() await aruba.init()
dc = aruba.getDc() dc = aruba.getDc()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment