From 041a6b385969e7ea471ca7006a4c48b0f08c300c Mon Sep 17 00:00:00 2001 From: Jacob Appelbaum Date: Sat, 6 Mar 2010 00:44:56 +0000 Subject: [PATCH] Add prefs for relay and fascist firewalling Adds the following prefs: PREF_RELAY (default false) PREF_RELAY_PORT (default 9001) PREF_FASCIST_FIREWALL (default false) PREF_FASCIST_FIREWALL_PORTS (default 80,443) svn:r21818 --- Orbot/res/xml/preferences.xml | 26 +++++++++++++++---- .../org/torproject/android/TorConstants.java | 4 +++ 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/Orbot/res/xml/preferences.xml b/Orbot/res/xml/preferences.xml index 3089a3c5..890f910d 100644 --- a/Orbot/res/xml/preferences.xml +++ b/Orbot/res/xml/preferences.xml @@ -23,20 +23,36 @@ android:title="Transparent Proxying" android:summary="ROOTED DEVICES ONLY: Activate Tor for all web traffic and DNS" android:enabled="true"/> - - \ No newline at end of file + + + + diff --git a/Orbot/src/org/torproject/android/TorConstants.java b/Orbot/src/org/torproject/android/TorConstants.java index a1988804..2cfb1daa 100644 --- a/Orbot/src/org/torproject/android/TorConstants.java +++ b/Orbot/src/org/torproject/android/TorConstants.java @@ -34,6 +34,10 @@ public interface TorConstants { public final static String PREF_BRIDGES_ENABLED = "pref_bridges_enabled"; public final static String PREF_BRIDGES_UPDATED = "pref_bridges_enabled"; public final static String PREF_BRIDGES_LIST = "pref_bridges_list"; + public final static String PREF_RELAY = "pref_relay"; + public final static String PREF_RELAY_PORT = "pref_relay_port"; + public final static String PREF_FASCIST_FIREWALL = "pref_fascist_firewall"; + public final static String PREF_FASCIST_FIREWALL_PORTS = "pref_fascist_firewall_ports"; public final static String PREF_TRANSPARENT = "pref_transparent";