always use ipv4 localhost when using orbot http proxy

This commit is contained in:
Daniel Gultsch 2016-10-31 09:53:14 +01:00
parent ffebb4677a
commit a5181b22e0

View file

@ -96,6 +96,6 @@ public class HttpConnectionManager extends AbstractConnectionManager {
}
public Proxy getProxy() throws IOException {
return new Proxy(Proxy.Type.HTTP, new InetSocketAddress(InetAddress.getLocalHost(), 8118));
return new Proxy(Proxy.Type.HTTP, new InetSocketAddress(InetAddress.getByAddress(new byte[]{127,0,0,1}), 8118));
}
}