diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml index d64fab69..6ba32ee9 100644 --- a/res/xml/preferences.xml +++ b/res/xml/preferences.xml @@ -50,19 +50,21 @@ android:dialogTitle="Enter a custom relay nickname" - + +android:enabled="false"> - - + diff --git a/src/org/torproject/android/Orbot.java b/src/org/torproject/android/Orbot.java index fd243875..9609dbdb 100644 --- a/src/org/torproject/android/Orbot.java +++ b/src/org/torproject/android/Orbot.java @@ -460,7 +460,7 @@ public class Orbot extends Activity implements OnClickListener, TorConstants, On boolean becomeRelay = prefs.getBoolean(PREF_OR, false); - boolean fascistFirewall = prefs.getBoolean(PREF_FASCIST_FIREWALL,false); + boolean ReachableAddresses = prefs.getBoolean(PREF_REACHABLE_ADDRESSES,false); enableTransparentProxy = prefs.getBoolean(PREF_TRANSPARENT, false); @@ -518,22 +518,19 @@ public class Orbot extends Activity implements OnClickListener, TorConstants, On try { - if (fascistFirewall) + if (ReachableAddresses) { - String fascistFirewallPorts = - prefs.getString(PREF_FASCIST_FIREWALL_PORTS, "80,443"); - - torrcText.append("FascistFirewall 1"); - torrcText.append('\n'); - torrcText.append("FirewallPorts "); + String ReachableAddressesPorts = + prefs.getString(PREF_REACHABLE_ADDRESSES_PORTS, "*:80,*:443"); + torrcText.append("ReachableAddresses "); // We should verify this and someday, the Exception will matter :-) - torrcText.append(fascistFirewallPorts); + torrcText.append(ReachableAddressesPorts); torrcText.append('\n'); } } catch (Exception e) { - Toast.makeText(this,"Your FascistFirewall settings caused an exception!", + Toast.makeText(this,"Your ReachableAddresses settings caused an exception!", Toast.LENGTH_LONG).show(); } diff --git a/src/org/torproject/android/TorConstants.java b/src/org/torproject/android/TorConstants.java index f1a95a2d..48b16d52 100644 --- a/src/org/torproject/android/TorConstants.java +++ b/src/org/torproject/android/TorConstants.java @@ -37,8 +37,8 @@ public interface TorConstants { public final static String PREF_OR = "pref_or"; public final static String PREF_OR_PORT = "pref_or_port"; public final static String PREF_OR_NICKNAME = "pref_or_nickname"; - 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_REACHABLE_ADDRESSES = "pref_reachable_addresses"; + public final static String PREF_REACHABLE_ADDRESSES_PORTS = "pref_reachable_addresses_ports"; public final static String PREF_TRANSPARENT = "pref_transparent";