mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-24 02:28:15 +03:00
Fix telemetry breaking if ENOTFOUND
This commit is contained in:
parent
99cfdf37d3
commit
3dc3aa3d33
1 changed files with 2 additions and 3 deletions
|
@ -113,9 +113,8 @@ export default class Tools
|
||||||
dns.lookup(uri, (error: any, address: string, family: any) => {
|
dns.lookup(uri, (error: any, address: string, family: any) => {
|
||||||
// console.log(`${uri} -> ${address}`);
|
// console.log(`${uri} -> ${address}`);
|
||||||
|
|
||||||
if (error)
|
if (error.toString().startsWith('Error: getaddrinfo ENOTFOUND')) resolve(true);
|
||||||
reject(error);
|
else if (error) reject(error);
|
||||||
|
|
||||||
else resolve(address == '0.0.0.0');
|
else resolve(address == '0.0.0.0');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue