Skip to content

Commit

Permalink
Drop unused RoutePlanner
Browse files Browse the repository at this point in the history
  • Loading branch information
str4d committed Jul 16, 2015
1 parent 50807f5 commit 9f36647
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 29 deletions.
23 changes: 0 additions & 23 deletions mobile/android/base/util/ProxyRoutePlanner.java

This file was deleted.

7 changes: 1 addition & 6 deletions mobile/android/base/util/ProxySettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import java.net.InetSocketAddress;
import java.net.Proxy;

import ch.boye.httpclientandroidlib.HttpHost;
import info.guardianproject.netcipher.client.StrongHttpsClient;

public class ProxySettings {
Expand All @@ -15,12 +14,8 @@ public static Proxy getProxy() {
return new Proxy(Proxy.Type.HTTP, new InetSocketAddress(TOR_PROXY_ADDRESS, TOR_PROXY_PORT));
}

public static HttpHost getProxyHost() {
// TODO make configurable
return new HttpHost(TOR_PROXY_ADDRESS, TOR_PROXY_PORT);
}

public static void setProxy(StrongHttpsClient client) {
// TODO make configurable
client.useProxy(true, StrongHttpsClient.TYPE_HTTP, TOR_PROXY_ADDRESS, TOR_PROXY_PORT);
}
}

0 comments on commit 9f36647

Please sign in to comment.