Refactoring

This commit is contained in:
M66B
2024-01-05 15:27:03 +01:00
parent 93f81499cf
commit bfc1900b90
7 changed files with 28 additions and 20 deletions

View File

@@ -351,6 +351,14 @@ public class DnsHelper {
return result;
}
static InetAddress getByName(Context context, String host) throws UnknownHostException {
return InetAddress.getByName(host);
}
static InetAddress[] getAllByName(Context context, String host) throws UnknownHostException {
return InetAddress.getAllByName(host);
}
static void verifyDane(X509Certificate[] chain, String server, int port) throws CertificateException {
Handler handler = new Handler() {
@Override