don't transproxy orweb

This commit is contained in:
Nathan Freitas 2011-11-13 10:39:24 -05:00
parent a118a65776
commit 2a92b72941
2 changed files with 7 additions and 0 deletions

View File

@ -6,6 +6,7 @@ public interface TorServiceConstants {
public final static String TOR_APP_USERNAME = "org.torproject.android"; public final static String TOR_APP_USERNAME = "org.torproject.android";
public final static String ORWEB_APP_USERNAME = "info.guardianproject.browser";
//home directory of Android application //home directory of Android application

View File

@ -192,6 +192,12 @@ public class TorTransProxy implements TorServiceConstants {
continue; continue;
} }
if (apps[i].getUsername().equals(TorServiceConstants.ORWEB_APP_USERNAME))
{
//should never trans proxy the Orbot app (and Tor or Privoxy) itself
continue;
}
TorService.logMessage("enabling transproxy for app: " + apps[i].getUsername() + "(" + apps[i].getUid() + ")"); TorService.logMessage("enabling transproxy for app: " + apps[i].getUsername() + "(" + apps[i].getUid() + ")");
//TCP //TCP