diff --git a/catvod/src/main/java/com/github/catvod/net/ProxySelector.java b/catvod/src/main/java/com/github/catvod/net/ProxySelector.java index ea8027235..ef5b4ae64 100644 --- a/catvod/src/main/java/com/github/catvod/net/ProxySelector.java +++ b/catvod/src/main/java/com/github/catvod/net/ProxySelector.java @@ -31,7 +31,7 @@ public class ProxySelector extends java.net.ProxySelector { public List 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