Rev3328, Fix CLI siteDownload, siteAnnounce, siteNeedFile commands

This commit is contained in:
shortcutme 2018-02-13 13:18:40 +01:00
parent e85c5e3b36
commit cd822156c9
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
3 changed files with 13 additions and 5 deletions

View file

@ -106,6 +106,9 @@ class ConnectionServer(object):
self.ips[ip] = connection
connection.handleIncomingConnection(sock)
def handleMessage(self, *args, **kwargs):
pass
def getConnection(self, ip=None, port=None, peer_id=None, create=True, site=None):
if ip.endswith(".onion") and self.tor_manager.start_onions and site: # Site-unique connection for Tor
site_onion = self.tor_manager.getOnion(site.address)