what-the-bank/sources/okhttp3/repackaged/Dns.java

22 lines
689 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package okhttp3.repackaged;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Arrays;
import java.util.List;
/* loaded from: classes6.dex */
public interface Dns {
public static final Dns SYSTEM = new Dns() { // from class: okhttp3.repackaged.Dns.1
@Override // okhttp3.repackaged.Dns
public final List<InetAddress> lookup(String str) throws UnknownHostException {
if (str == null) {
throw new UnknownHostException("hostname == null");
}
return Arrays.asList(InetAddress.getAllByName(str));
}
};
List<InetAddress> lookup(String str) throws UnknownHostException;
}