33 lines
965 B
Java
33 lines
965 B
Java
|
package okhttp3.internal.proxy;
|
||
|
|
||
|
import java.io.IOException;
|
||
|
import java.net.Proxy;
|
||
|
import java.net.ProxySelector;
|
||
|
import java.net.SocketAddress;
|
||
|
import java.net.URI;
|
||
|
import java.util.Collections;
|
||
|
import java.util.List;
|
||
|
import o.C14957gcv;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class NullProxySelector extends ProxySelector {
|
||
|
public static final NullProxySelector INSTANCE = new NullProxySelector();
|
||
|
|
||
|
@Override // java.net.ProxySelector
|
||
|
public final void connectFailed(URI uri, SocketAddress socketAddress, IOException iOException) {
|
||
|
}
|
||
|
|
||
|
private NullProxySelector() {
|
||
|
}
|
||
|
|
||
|
@Override // java.net.ProxySelector
|
||
|
public final List<Proxy> select(URI uri) {
|
||
|
if (uri == null) {
|
||
|
throw new IllegalArgumentException("uri must not be null".toString());
|
||
|
}
|
||
|
List<Proxy> singletonList = Collections.singletonList(Proxy.NO_PROXY);
|
||
|
C14957gcv.c(singletonList, "");
|
||
|
return singletonList;
|
||
|
}
|
||
|
}
|