Add site to connection log

This commit is contained in:
shortcutme 2018-10-30 04:40:34 +01:00
parent 281f379ced
commit 083d64d151
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 1 additions and 1 deletions

View file

@ -106,7 +106,6 @@ class Connection(object):
# Open connection to peer and wait for handshake
def connect(self):
self.log("Connecting...")
self.type = "out"
if self.ip.endswith(".onion"):
if not self.server.tor_manager or not self.server.tor_manager.enabled:

View file

@ -173,6 +173,7 @@ class ConnectionServer(object):
self.num_outgoing += 1
self.ips[key] = connection
self.connections.append(connection)
connection.log("Connecting... (site: %s)" % site)
succ = connection.connect()
if not succ:
connection.close("Connection event return error")