commit 30949a4218cf06c8e73927ec0db06dfa6d662294 Author: Karsten Loesing karsten.loesing@gmx.net Date: Wed Jul 1 16:50:57 2020 +0200
Write generated torrc files to disk.
Implements #40002. --- onionperf/measurement.py | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/onionperf/measurement.py b/onionperf/measurement.py index 4a58bc4..1540bac 100644 --- a/onionperf/measurement.py +++ b/onionperf/measurement.py @@ -439,6 +439,9 @@ WarnUnsafeSocks 0\nSafeLogging 0\nMaxCircuitDirtiness 60 seconds\nDataDirectory
if not os.path.exists(tor_datadir): os.makedirs(tor_datadir) tor_config = self.create_tor_config(control_port,socks_port,tor_datadir,name) + tor_confpath = "{0}/torrc".format(tor_datadir) + with open(tor_confpath, 'wt') as f: + f.write(tor_config)
tor_logpath = "{0}/onionperf.tor.log".format(tor_datadir) tor_writable = util.FileWritable(tor_logpath)
tor-commits@lists.torproject.org