Fix issue #397
This commit is contained in:
parent
82be9f0bc7
commit
c43fe3ef3e
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue