first attempt to generalize tor user detection
This commit is contained in:
parent
c0a686ef8e
commit
5795c466c1
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ class TorIptables(object):
|
|||
self.local_loopback = "127.0.0.1" # Local loopback
|
||||
self.non_tor_net = ["192.168.0.0/16", "172.16.0.0/12"]
|
||||
self.non_tor = ["127.0.0.0/9", "127.128.0.0/10", "127.0.0.0/8"]
|
||||
self.tor_uid = getoutput("id -ur tor") # Tor user uid
|
||||
self.tor_uid = getoutput("id -ur debian-tor 2>/dev/null || id -ur tor 2>/dev/null") # Tor user uid
|
||||
self.trans_port = "9040" # Tor port
|
||||
self.tor_config_file = '/etc/tor/torrc'
|
||||
self.torrc = r'''
|
||||
|
|
Loading…
Add table
Reference in a new issue