mirror of
https://github.com/cmehay/docker-tor-hidden-service.git
synced 2025-04-11 17:42:04 +00:00
Fix issue when restarting tor container with control password
This commit is contained in:
parent
6d1320f29b
commit
8896142fc4
1 changed files with 4 additions and 3 deletions
|
@ -57,9 +57,10 @@ class Setup(object):
|
|||
self.setup[host]['ports'][host].append(port)
|
||||
|
||||
def _hash_control_port_password(self, password):
|
||||
self.control_hashed_password = subprocess.check_output([
|
||||
'tor', '--quiet', '--hash-password', password
|
||||
]).decode()
|
||||
self.control_hashed_password = subprocess.check_output(
|
||||
['/usr/local/bin/tor', '--quiet', '--hash-password', password],
|
||||
env={'HOME': '/tmp'}
|
||||
).decode()
|
||||
|
||||
def _parse_control_port_variable(self, check_ip=True):
|
||||
control_port = os.environ['TOR_CONTROL_PORT']
|
||||
|
|
Loading…
Add table
Reference in a new issue