always use http proxy for http requests. (socks is leaking dns)

This commit is contained in:
Daniel Gultsch 2015-11-30 15:43:54 +01:00
parent 8ffcc11f27
commit b4a259837e
1 changed files with 1 additions and 5 deletions

View File

@ -95,10 +95,6 @@ public class HttpConnectionManager extends AbstractConnectionManager {
} }
public Proxy getProxy() throws IOException { public Proxy getProxy() throws IOException {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
return new Proxy(Proxy.Type.SOCKS, new InetSocketAddress(InetAddress.getLocalHost(), 9050));
} else {
return new Proxy(Proxy.Type.HTTP, new InetSocketAddress(InetAddress.getLocalHost(), 8118)); return new Proxy(Proxy.Type.HTTP, new InetSocketAddress(InetAddress.getLocalHost(), 8118));
} }
} }
}