Fixed issue with password parsing.

When parsing control.conf or password file, a newline character is picked up causing Authentication Errors.
This commit is contained in:
MadcowOG 2022-06-28 17:15:04 -07:00
parent c1d9373d55
commit 1eb6d36705

View File

@ -56,7 +56,7 @@ def send_tor_signal(signal: Signal) -> bool:
# Scan for the last line of the file.
for line in conf:
pass
secret = line
secret = line.strip('\n')
authenticate_password(c, password=secret)
else:
cookie_path = '/var/lib/tor/control_auth_cookie'