From 84987cfc21d20447f02c8aa61ce35cca53a08995 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Fri, 29 Jan 2021 21:30:58 +0000 Subject: [PATCH] added unsafe socks denial to torrc generator --- src/netcontroller/torcontrol/gentorrc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/netcontroller/torcontrol/gentorrc.py b/src/netcontroller/torcontrol/gentorrc.py index d1dc8749..6f80e311 100644 --- a/src/netcontroller/torcontrol/gentorrc.py +++ b/src/netcontroller/torcontrol/gentorrc.py @@ -72,6 +72,8 @@ def generate_torrc(net_controller: 'NetController', DataDirectory """ + home_dir + """tordata/ CookieAuthentication 1 KeepalivePeriod 40 +SafeSocks 1 +TestSocks 1 CircuitsAvailableTimeout 86400 ControlPort """ + str(control_port) + """ HashedControlPassword """ + str(password) + """