From a5181b22e0f4d6b3099906cdcb1cf8d10aaec60b Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Mon, 31 Oct 2016 09:53:14 +0100 Subject: [PATCH] always use ipv4 localhost when using orbot http proxy --- .../java/eu/siacs/conversations/http/HttpConnectionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/http/HttpConnectionManager.java b/src/main/java/eu/siacs/conversations/http/HttpConnectionManager.java index a8b31a7a9..1a417f32a 100644 --- a/src/main/java/eu/siacs/conversations/http/HttpConnectionManager.java +++ b/src/main/java/eu/siacs/conversations/http/HttpConnectionManager.java @@ -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)); } }