mirror of
https://github.com/leon-ai/leon.git
synced 2024-11-24 12:45:58 +03:00
fix(bridge/nodejs): usage of getleon.ai to try network available
This commit is contained in:
parent
c8fc0068d1
commit
12ce47b937
@ -112,10 +112,10 @@ export class Network {
|
||||
*/
|
||||
public async isNetworkAvailable(): Promise<boolean> {
|
||||
try {
|
||||
await dns.promises.resolve('apple.com')
|
||||
await dns.promises.resolve('getleon.ai')
|
||||
|
||||
return true
|
||||
} catch (e) {
|
||||
} catch {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user