renable polipo
This commit is contained in:
parent
90d77ce4be
commit
d56fdb20aa
|
@ -20,6 +20,7 @@ android {
|
|||
|
||||
dependencies {
|
||||
compile 'com.android.support:appcompat-v7:23.+'
|
||||
// compile group: 'org.littleshoot', name: 'littleproxy', version: '1.1.0-beta1'
|
||||
compile fileTree(dir: 'libs', include: ['*.jar'])
|
||||
testCompile 'junit:junit:4.12'
|
||||
}
|
||||
|
|
|
@ -54,6 +54,7 @@ import java.io.InputStream;
|
|||
import java.io.InputStreamReader;
|
||||
import java.io.PrintStream;
|
||||
import java.io.PrintWriter;
|
||||
import java.net.InetAddress;
|
||||
import java.net.InetSocketAddress;
|
||||
import java.net.Proxy;
|
||||
import java.net.Socket;
|
||||
|
@ -69,12 +70,15 @@ import java.util.Iterator;
|
|||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Properties;
|
||||
import java.util.Queue;
|
||||
import java.util.Set;
|
||||
import java.util.StringTokenizer;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
import java.util.concurrent.TimeoutException;
|
||||
|
||||
import javax.net.ssl.SSLEngine;
|
||||
|
||||
public class TorService extends Service implements TorServiceConstants, OrbotConstants, EventHandler
|
||||
{
|
||||
|
||||
|
@ -86,6 +90,7 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon
|
|||
private Socket torConnSocket = null;
|
||||
private int mLastProcessId = -1;
|
||||
|
||||
|
||||
private int mPortHTTP = HTTP_PROXY_PORT_DEFAULT;
|
||||
private int mPortSOCKS = SOCKS_PROXY_PORT_DEFAULT;
|
||||
|
||||
|
@ -511,6 +516,7 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon
|
|||
Log.w(OrbotConstants.TAG,"could not kill polipo",e);
|
||||
cannotKillFile = filePolipo;
|
||||
}
|
||||
|
||||
try {
|
||||
TorServiceUtils.killProcess(fileTor);
|
||||
} catch (IOException e) {
|
||||
|
@ -782,7 +788,7 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon
|
|||
if (success)
|
||||
{
|
||||
if (mPortHTTP != -1)
|
||||
runPolipoShellCmd();
|
||||
runPolipoShellCmd();
|
||||
|
||||
if (Prefs.useRoot() && Prefs.useTransparentProxying())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue