tor_password argument...

This commit is contained in:
erqan 2016-12-27 17:15:02 +03:00
parent 9a1735f37d
commit a3f62f56f6
2 changed files with 3 additions and 0 deletions

View file

@ -167,6 +167,8 @@ class TorManager:
cookie_file = cookie_match.group(1)
auth_hex = binascii.b2a_hex(open(cookie_file, "rb").read())
res_auth = self.send("AUTHENTICATE %s" % auth_hex, conn)
elif config.tor_password:
res_auth = self.send('AUTHENTICATE "%s"' % config.tor_password, conn)
else:
res_auth = self.send("AUTHENTICATE", conn)