Fix target_onion on connection recovery

This commit is contained in:
shortcutme 2017-04-10 12:19:23 +02:00
parent 25bb14037c
commit 10632c15ef
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -132,7 +132,7 @@ class ConnectionServer:
raise Exception("This peer is not connectable")
try:
if ip.endswith(".onion") and self.tor_manager.start_onions and site: # Lock connection to site
connection = Connection(self, ip, port, target_onion=ip.replace(".onion", ""))
connection = Connection(self, ip, port, target_onion=site_onion)
else:
connection = Connection(self, ip, port)
self.ips[key] = connection