Update ProxySelector.java

pull/171/head
FongMi 2 years ago
parent 6860df9933
commit 40e34070ea
  1. 2
      catvod/src/main/java/com/github/catvod/net/ProxySelector.java

@ -31,7 +31,7 @@ public class ProxySelector extends java.net.ProxySelector {
public List<Proxy> select(URI uri) {
if (proxy == null || hosts == null || hosts.isEmpty() || uri.getHost() == null || "127.0.0.1".equals(uri.getHost())) return Collections.singletonList(Proxy.NO_PROXY);
for (String host : hosts) if (Util.containOrMatch(uri.getHost(), host)) return Collections.singletonList(proxy);
return Collections.singletonList(Proxy.NO_PROXY);
return getDefault().select(uri);
}
@Override

Loading…
Cancel
Save