[tor-commits] [ooni-probe/master] Change ooni.director.start() to set config.reports.pcap option.

art at torproject.org art at torproject.org
Wed Mar 20 17:49:11 UTC 2013


commit 745ae4a115133ab2a22d2aea3271b57e273bae39
Author: Isis Lovecruft <isis at torproject.org>
Date:   Mon Mar 11 23:01:59 2013 +0000

    Change ooni.director.start() to set config.reports.pcap option.
    
     * ooni.director.start() is changed in order to set the now instanced
       config.reports.pcap object, rather than calling a function in ooni/config.py
       which sets it.
---
 ooni/director.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ooni/director.py b/ooni/director.py
index 8365ebd..952b74a 100644
--- a/ooni/director.py
+++ b/ooni/director.py
@@ -84,7 +84,7 @@ class Director(object):
         if config.privacy.includepcap:
             log.msg("Starting")
             if not config.reports.pcap:
-                config.generatePcapFilename()
+                config.reports.pcap = config.generatePcapFilename()
             self.startSniffing()
 
         if config.advanced.start_tor:





More information about the tor-commits mailing list