mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 11:55:20 +01:00
Improved TLS check
This commit is contained in:
@@ -502,11 +502,11 @@ public class ConnectionHelper {
|
||||
return addr;
|
||||
}
|
||||
|
||||
static boolean isLocalIPAddress(String host) {
|
||||
boolean numeric = ConnectionHelper.jni_is_numeric_address(host);
|
||||
if (!numeric)
|
||||
return false;
|
||||
static boolean isNumericAddress(String host) {
|
||||
return ConnectionHelper.jni_is_numeric_address(host);
|
||||
}
|
||||
|
||||
static boolean isLocalAddress(String host) {
|
||||
try {
|
||||
InetAddress addr = ConnectionHelper.from6to4(InetAddress.getByName(host));
|
||||
return (addr.isSiteLocalAddress() || addr.isLinkLocalAddress());
|
||||
|
||||
Reference in New Issue
Block a user