mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-19 16:33:04 +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) => {
|
||||
// console.log(`${uri} -> ${address}`);
|
||||
|
||||
if (error)
|
||||
reject(error);
|
||||
|
||||
if (error.toString().startsWith('Error: getaddrinfo ENOTFOUND')) resolve(true);
|
||||
else if (error) reject(error);
|
||||
else resolve(address == '0.0.0.0');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue