Tor service ipv6 support

This commit is contained in:
shortcutme 2019-01-20 16:50:55 +01:00
parent cc3bb912be
commit bffe6e7a32
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 2 additions and 2 deletions

View File

@ -52,10 +52,10 @@ class TorManager(object):
else:
self.fileserver_port = config.fileserver_port
self.ip, self.port = config.tor_controller.split(":")
self.ip, self.port = config.tor_controller.rsplit(":", 1)
self.port = int(self.port)
self.proxy_ip, self.proxy_port = config.tor_proxy.split(":")
self.proxy_ip, self.proxy_port = config.tor_proxy.rsplit(":", 1)
self.proxy_port = int(self.proxy_port)
def start(self):