added Privoxy running confirmation; also reachableports and relay support (added by ioerror) have been double-checked
svn:r21830
This commit is contained in:
parent
24f6adc201
commit
223a03e617
|
@ -447,8 +447,11 @@ public class TorService extends Service implements TorServiceConstants, Runnable
|
||||||
String[] cmds =
|
String[] cmds =
|
||||||
{ PRIVOXY_INSTALL_PATH + " " + PRIVOXY_COMMAND_LINE_ARGS };
|
{ PRIVOXY_INSTALL_PATH + " " + PRIVOXY_COMMAND_LINE_ARGS };
|
||||||
TorServiceUtils.doShellCommand(cmds, log, false, true);
|
TorServiceUtils.doShellCommand(cmds, log, false, true);
|
||||||
|
Thread.sleep(1000);
|
||||||
|
|
||||||
privoxyProcId = TorServiceUtils.findProcessId(TorServiceConstants.PRIVOXY_INSTALL_PATH);
|
privoxyProcId = TorServiceUtils.findProcessId(TorServiceConstants.PRIVOXY_INSTALL_PATH);
|
||||||
|
|
||||||
|
|
||||||
if (privoxyProcId == -1)
|
if (privoxyProcId == -1)
|
||||||
{
|
{
|
||||||
this.sendCallbackMessage("Couldn't start Privoxy process... retrying...\n" + log);
|
this.sendCallbackMessage("Couldn't start Privoxy process... retrying...\n" + log);
|
||||||
|
@ -456,6 +459,9 @@ public class TorService extends Service implements TorServiceConstants, Runnable
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sendCallbackMessage("Privoxy is running on port: " + PORT_HTTP);
|
||||||
|
Thread.sleep(100);
|
||||||
|
|
||||||
Log.i(TAG,"Privoxy process id=" + privoxyProcId);
|
Log.i(TAG,"Privoxy process id=" + privoxyProcId);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue