Fix target_onion on connection recovery
This commit is contained in:
parent
25bb14037c
commit
10632c15ef
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ class ConnectionServer:
|
||||||
raise Exception("This peer is not connectable")
|
raise Exception("This peer is not connectable")
|
||||||
try:
|
try:
|
||||||
if ip.endswith(".onion") and self.tor_manager.start_onions and site: # Lock connection to site
|
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:
|
else:
|
||||||
connection = Connection(self, ip, port)
|
connection = Connection(self, ip, port)
|
||||||
self.ips[key] = connection
|
self.ips[key] = connection
|
||||||
|
|
Loading…
Reference in a new issue