From dcbf2669c8169bbacab0971e735667edbc15e0f1 Mon Sep 17 00:00:00 2001 From: Jeremy Kescher Date: Wed, 29 Jan 2020 12:30:46 +0100 Subject: [PATCH] Check for connectivity issues --- lib/serverlist.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/serverlist.dart b/lib/serverlist.dart index fe2bfed..6bc9195 100644 --- a/lib/serverlist.dart +++ b/lib/serverlist.dart @@ -394,6 +394,12 @@ class _ServerListState extends State { return ServerStatus.dnsError; } + try { + var _ = await HttpUtils.getForJson('https://dns.google.com/resolve'); + } catch (SocketException) { + return ServerStatus.clientConnectivityIssues; + } + try { // Check if host is IP address InternetAddress(parsedUri.host); -- 2.47.0