diff options
author | Christian Schneppe <christian@pix-art.de> | 2016-11-07 21:29:41 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-11-07 21:29:41 +0100 |
commit | 2362579eee68c24a9a91ff01b01ce96873a6fb14 (patch) | |
tree | d9b73026ae81077233e5d8a2ee9419caa540a65f /src | |
parent | af568133107a029dab0dfbeeecc7a434a319570d (diff) |
always use ipv4 localhost when using orbot http proxy
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/de/pixart/messenger/http/HttpConnectionManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/http/HttpConnectionManager.java b/src/main/java/de/pixart/messenger/http/HttpConnectionManager.java index b8ee031b3..921b20571 100644 --- a/src/main/java/de/pixart/messenger/http/HttpConnectionManager.java +++ b/src/main/java/de/pixart/messenger/http/HttpConnectionManager.java @@ -94,6 +94,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)); } } |