added unsafe socks denial to torrc generator

This commit is contained in:
Kevin Froman 2021-01-29 21:30:58 +00:00
parent 63f7209bdd
commit 84987cfc21
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,8 @@ def generate_torrc(net_controller: 'NetController',
DataDirectory """ + home_dir + """tordata/ DataDirectory """ + home_dir + """tordata/
CookieAuthentication 1 CookieAuthentication 1
KeepalivePeriod 40 KeepalivePeriod 40
SafeSocks 1
TestSocks 1
CircuitsAvailableTimeout 86400 CircuitsAvailableTimeout 86400
ControlPort """ + str(control_port) + """ ControlPort """ + str(control_port) + """
HashedControlPassword """ + str(password) + """ HashedControlPassword """ + str(password) + """