[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [orbot/master] Add correct torrc entries for obfuscated bridges
commit ab4f789eff85ab148ea6f3ba19c8aaa576864fe7
Author: Adrian-Ken Rueegsegger <ken@xxxxxxxxxxx>
Date: Fri Feb 10 23:12:54 2012 +0100
Add correct torrc entries for obfuscated bridges
The lines have the following form:
Bridge obfs2 ${IP address of bridge}
...
ClientTransportPlugin obfs2 exec ${/path/to/obfsproxy} --managed
---
src/org/torproject/android/service/TorService.java | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/src/org/torproject/android/service/TorService.java b/src/org/torproject/android/service/TorService.java
index 80daaab..70f29a1 100644
--- a/src/org/torproject/android/service/TorService.java
+++ b/src/org/torproject/android/service/TorService.java
@@ -1462,16 +1462,28 @@ public class TorService extends Service implements TorServiceConstants, TorConst
showToolbarNotification(getString(R.string.notification_using_bridges) + ": " + bridgeList, TRANSPROXY_NOTIFY_ID, R.drawable.tornotification, -1);
+ boolean obfsBridges = prefs.getBoolean(TorConstants.PREF_BRIDGES_OBFUSCATED, false);
+ String bridgeCfgKey = "bridge";
+
+ if (obfsBridges)
+ {
+ bridgeCfgKey = bridgeCfgKey + " obfs2";
+ }
+
StringTokenizer st = new StringTokenizer(bridgeList,bridgeDelim);
while (st.hasMoreTokens())
{
- mBinder.updateConfiguration("bridge", st.nextToken(), false);
+ mBinder.updateConfiguration(bridgeCfgKey, st.nextToken(), false);
}
-
+
+ if (obfsBridges)
+ {
+ mBinder.updateConfiguration("ClientTransportPlugin","obfs2 exec " + fileObfsProxy.getAbsolutePath() + " --managed", false);
+ }
+
mBinder.updateConfiguration("UpdateBridgesFromAuthority", "0", false);
-
}
else
{
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits