mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-23 18:20:19 +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) => {
|
||||
// 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