[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r21830: {projects} added Privoxy running confirmation; also reachableports and (projects/android/trunk/Orbot/src/org/torproject/android/service)



Author: n8fr8
Date: 2010-03-06 15:02:04 +0000 (Sat, 06 Mar 2010)
New Revision: 21830

Modified:
   projects/android/trunk/Orbot/src/org/torproject/android/service/TorService.java
Log:
added Privoxy running confirmation; also reachableports and relay support (added by ioerror) have been double-checked

Modified: projects/android/trunk/Orbot/src/org/torproject/android/service/TorService.java
===================================================================
--- projects/android/trunk/Orbot/src/org/torproject/android/service/TorService.java	2010-03-06 14:56:39 UTC (rev 21829)
+++ projects/android/trunk/Orbot/src/org/torproject/android/service/TorService.java	2010-03-06 15:02:04 UTC (rev 21830)
@@ -447,8 +447,11 @@
     			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 @@
     			}
     		}
     		
+			sendCallbackMessage("Privoxy is running on port: " + PORT_HTTP);
+			Thread.sleep(100);
+			
     		Log.i(TAG,"Privoxy process id=" + privoxyProcId);