[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r19338: {torflow} Use global control port password in statssplitter. (torflow/trunk/NetworkScanners)
Author: mikeperry
Date: 2009-04-16 05:39:42 -0400 (Thu, 16 Apr 2009)
New Revision: 19338
Modified:
torflow/trunk/NetworkScanners/statsplitter.py
Log:
Use global control port password in statssplitter.
Modified: torflow/trunk/NetworkScanners/statsplitter.py
===================================================================
--- torflow/trunk/NetworkScanners/statsplitter.py 2009-04-16 08:25:36 UTC (rev 19337)
+++ torflow/trunk/NetworkScanners/statsplitter.py 2009-04-16 09:39:42 UTC (rev 19338)
@@ -6,7 +6,7 @@
sys.path.append("../")
#from TorCtl import *
from TorCtl import TorUtil, PathSupport, TorCtl
-from TorCtl.TorUtil import control_port, control_host
+from TorCtl.TorUtil import control_port, control_host, control_pass
from TorCtl.TorUtil import *
from TorCtl.PathSupport import *
import atexit
@@ -23,7 +23,7 @@
s.connect((control_host,control_port))
c = Connection(s)
c.debug(file("control.log", "w"))
-c.authenticate()
+c.authenticate(control_pass)
FUDValue = c.get_option("FetchUselessDescriptors")[0][1]
c.set_option("FetchUselessDescriptors", "1")
atexit.register(cleanup, *(c, FUDValue))