added WHOIS

This commit is contained in:
Xargana 2025-04-11 19:13:02 +03:00
parent 3ca2226494
commit 1026f13843
3 changed files with 72 additions and 1 deletions

View file

@ -30,7 +30,7 @@ async function checkServers() {
for (const server of REMOTE_SERVERS) {
try {
const res = await ping.promise.probe(server.host, {
timeout: 2, // Set a timeout of 2 seconds
timeout: 4, // Set a timeout of 4 seconds
});
serversStatus[server.name].online = res.alive;
serversStatus[server.name].responseTime = res.time;