mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-24 18:48:14 +03:00
Merge branch 'marie/enotfound' into 'main'
Fix telemetry breaking if ENOTFOUND See merge request KRypt0n_/an-anime-game-launcher!11
This commit is contained in:
commit
c000cd4e0e
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