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

[tor-commits] [ooni-probe/master] Add support for obfs2 obfsproxy bridge testing



commit 8acea0c0696796f689a42d833acfbda5c0129a1c
Author: Arturo Filastò <hellais@xxxxxxxxx>
Date:   Fri Feb 10 15:13:49 2012 +0100

    Add support for obfs2 obfsproxy bridge testing
---
 refactor/tests/bridget.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/refactor/tests/bridget.py b/refactor/tests/bridget.py
index cb77c89..2d1126f 100644
--- a/refactor/tests/bridget.py
+++ b/refactor/tests/bridget.py
@@ -39,14 +39,14 @@ class BridgeT(Plugoo):
         randomname = "tor_"+str(random.randint(0, 424242424242))
         datadir = "/tmp/" + randomname
         if bridge.startswith("obfs://"):
-            obfsbridge = bridge.split("/")[1]
+            obfsbridge = bridge.split("//")[1]
             torrc = """SocksPort %s
 UseBridges 1
-DataDirectory %s
 Bridge obfs2 %s
+DataDirectory %s
 ClientTransportPlugin obfs2 exec /usr/local/bin/obfsproxy --managed
 """ % (socksport, obfsbridge, datadir)
-
+            print torrc
         else:
             torrc = """SocksPort %s
 UseBridges 1

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits