From 10632c15efa9e78885463082c6f4c271d94d4f61 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Mon, 10 Apr 2017 12:19:23 +0200 Subject: [PATCH] Fix target_onion on connection recovery --- src/Connection/ConnectionServer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Connection/ConnectionServer.py b/src/Connection/ConnectionServer.py index 0fd68bee..43439e68 100644 --- a/src/Connection/ConnectionServer.py +++ b/src/Connection/ConnectionServer.py @@ -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