Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
update default http proxy port
Browse files Browse the repository at this point in the history
  • Loading branch information
iamironrabbit committed Jun 21, 2018
1 parent ed7606f commit 4cdd5f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5196,9 +5196,9 @@ private String uploadFile(long fileSize, InputStream fis, Slot slot, UploadProgr
urlConnection = (HttpURLConnection) putUrl.openConnection(proxy);
}
else if (useAdvancedNetworking) {
//setProxy("SOCKS5","127.0.0.1",31059);
// java.net.Proxy proxy =new java.net.Proxy(java.net.Proxy.Type.SOCKS,new InetSocketAddress(AdvancedNetworking.DEFAULT_SERVER,AdvancedNetworking.DEFAULT_PORT));
// urlConnection = (HttpURLConnection) putUrl.openConnection(proxy);

java.net.Proxy proxy =new java.net.Proxy(java.net.Proxy.Type.SOCKS,new InetSocketAddress(AdvancedNetworking.DEFAULT_HTTP_PROXY_SERVER,AdvancedNetworking.DEFAULT_HTTP_PORT));
urlConnection = (HttpURLConnection) putUrl.openConnection(proxy);
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ public class AdvancedNetworking {
public final static String DEFAULT_SERVER = "172.104.48.102";
public final static int DEFAULT_PORT = 80;

public final static String DEFAULT_HTTP_PROXY_SERVER = "52.68.246.231";
public final static int DEFAULT_HTTP_PORT = 80;

public boolean installTransport (Context context, String assetKey)
{
BinaryInstaller bi = new BinaryInstaller(context,context.getFilesDir());
Expand Down

0 comments on commit 4cdd5f0

Please sign in to comment.