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

[or-cvs] r21818: {projects} Add prefs for relay and fascist firewalling Adds the followi (in projects/android/trunk/Orbot: res/xml src/org/torproject/android)



Author: ioerror
Date: 2010-03-06 00:44:56 +0000 (Sat, 06 Mar 2010)
New Revision: 21818

Modified:
   projects/android/trunk/Orbot/res/xml/preferences.xml
   projects/android/trunk/Orbot/src/org/torproject/android/TorConstants.java
Log:
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)


Modified: projects/android/trunk/Orbot/res/xml/preferences.xml
===================================================================
--- projects/android/trunk/Orbot/res/xml/preferences.xml	2010-03-06 00:01:59 UTC (rev 21817)
+++ projects/android/trunk/Orbot/res/xml/preferences.xml	2010-03-06 00:44:56 UTC (rev 21818)
@@ -23,20 +23,36 @@
 android:summary="ROOTED DEVICES ONLY: Activate Tor for all web traffic and DNS"
 android:enabled="true"/>
 
-<!-- 
-
-<EditTextPreference android:key="pref_relay"
+<PreferenceCategory android:title="Relays">
+<CheckBoxPreference android:key="pref_relay"
+android:defaultValue="false"
 android:title="Relaying"
 android:summary="Enable your device to be a relay"
 android:dialogTitle="Enter Bridge Addresses"
 android:enabled="false"
 />
 
+<EditTextPreference android:key="pref_relay_port"
+android:defaultValue="9001"
+android:title="Relay Port"
+android:summary="Listening port for your Tor relay"
+android:dialogTitle="Enter OR port"
+/>
+</PreferenceCategory>
 
+<PreferenceCategory android:title="FascistFirewalling">
 <CheckBoxPreference android:defaultValue="false" 
+android:defaultValue="false"
 android:title="Fascist Firewall" android:key="pref_fascist_firewall" 
 android:summary="Run as a client behind a firewall with restrictive policies"
 android:enabled="false"></CheckBoxPreference>
- -->
 
-</PreferenceScreen>
\ No newline at end of file
+<EditTextPreference android:key="pref_fascist_firewall_ports"
+android:defaultValue="80,443"
+android:title="Reachable ports"
+android:summary="Ports reachable behind a restrictive firewall"
+android:dialogTitle="Enter ports"
+/>
+</PreferenceCategory>
+
+</PreferenceScreen>

Modified: projects/android/trunk/Orbot/src/org/torproject/android/TorConstants.java
===================================================================
--- projects/android/trunk/Orbot/src/org/torproject/android/TorConstants.java	2010-03-06 00:01:59 UTC (rev 21817)
+++ projects/android/trunk/Orbot/src/org/torproject/android/TorConstants.java	2010-03-06 00:44:56 UTC (rev 21818)
@@ -34,6 +34,10 @@
 	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";