diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-10-31 09:53:14 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-10-31 09:53:14 +0100 |
commit | a5181b22e0f4d6b3099906cdcb1cf8d10aaec60b (patch) | |
tree | 511825d003b4ec9bf1f98ce072f65949fde7c811 /src/main/java/eu/siacs | |
parent | ffebb4677a3b7f244aa153be808d472ee5fc960b (diff) |
always use ipv4 localhost when using orbot http proxy
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/http/HttpConnectionManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/http/HttpConnectionManager.java b/src/main/java/eu/siacs/conversations/http/HttpConnectionManager.java index a8b31a7a..1a417f32 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)); } } |