move HTTP VPN bypass proxy to 9998
This commit is contained in:
parent
a1ba41ce0b
commit
9c77526f22
|
@ -2120,9 +2120,9 @@ public class TorService extends Service implements TorServiceConstants, TorConst
|
|||
{
|
||||
if (mUseVPN) //set the proxy here if we aren't using a bridge
|
||||
{
|
||||
String proxyType = "http";//"socks5";
|
||||
String proxyHost = "10.0.0.1";
|
||||
int proxyPort = 8888;//9999;
|
||||
String proxyType = "socks5";
|
||||
String proxyHost = "127.0.0.1";
|
||||
int proxyPort = 9999;
|
||||
updateConfiguration(proxyType + "Proxy", proxyHost + ':' + proxyPort, false);
|
||||
|
||||
}
|
||||
|
@ -2245,8 +2245,8 @@ public class TorService extends Service implements TorServiceConstants, TorConst
|
|||
if (mUseVPN)
|
||||
{
|
||||
proxyType = "http"; //"socks5";
|
||||
String proxyHost = "10.0.0.1";
|
||||
int proxyPort = 8888; //9999;
|
||||
String proxyHost = "127.0.0.1";
|
||||
int proxyPort = 9998; //9999;
|
||||
|
||||
proxyBridge = " proxy=" + proxyType + "://" + proxyHost + ':' + proxyPort;
|
||||
|
||||
|
|
|
@ -211,7 +211,7 @@ public class HttpProxy extends Thread
|
|||
try {
|
||||
// create a server socket, and loop forever listening for
|
||||
// client connections
|
||||
server = new ServerSocket(thisPort);
|
||||
server = new ServerSocket(thisPort,5,InetAddress.getLocalHost());
|
||||
if (debugLevel > 0)
|
||||
debugOut.println("Started HttpProxy on port " + thisPort);
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@ public class OrbotVpnService extends VpnService implements Handler.Callback {
|
|||
|
||||
mThreadProxy.start();
|
||||
|
||||
mHttpProxyServer = new HttpProxy(8888);
|
||||
mHttpProxyServer = new HttpProxy(9998);
|
||||
HttpProxy.setVpnService(OrbotVpnService.this);
|
||||
mHttpProxyServer.setDebug(5, System.out);
|
||||
mHttpProxyServer.start();
|
||||
|
|
Loading…
Reference in New Issue