added Privoxy running confirmation; also reachableports and relay support (added by ioerror) have been double-checked
svn:r21830
This commit is contained in:
parent
32c6e62c45
commit
4674391570
|
@ -447,8 +447,11 @@ public class TorService extends Service implements TorServiceConstants, Runnable
|
|||
String[] cmds =
|
||||
{ PRIVOXY_INSTALL_PATH + " " + PRIVOXY_COMMAND_LINE_ARGS };
|
||||
TorServiceUtils.doShellCommand(cmds, log, false, true);
|
||||
Thread.sleep(1000);
|
||||
|
||||
privoxyProcId = TorServiceUtils.findProcessId(TorServiceConstants.PRIVOXY_INSTALL_PATH);
|
||||
|
||||
|
||||
if (privoxyProcId == -1)
|
||||
{
|
||||
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);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue