This commit is contained in:
tom79 2020-02-01 14:47:39 +01:00
parent 82be9f0bc7
commit c43fe3ef3e
1 changed files with 6 additions and 1 deletions

View File

@ -666,7 +666,12 @@ public class Helper {
InetAddress ipAddr = InetAddress.getByName(instance); InetAddress ipAddr = InetAddress.getByName(instance);
return !ipAddr.toString().equals(""); return !ipAddr.toString().equals("");
} catch (Exception e) { } catch (Exception e) {
return false; try {
InetAddress ipAddr = InetAddress.getByName("mastodon.social");
return !ipAddr.toString().equals("");
} catch (Exception ex) {
return false;
}
} }
} else { } else {
return false; return false;