Add site to connection log
This commit is contained in:
parent
281f379ced
commit
083d64d151
2 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,6 @@ class Connection(object):
|
||||||
|
|
||||||
# Open connection to peer and wait for handshake
|
# Open connection to peer and wait for handshake
|
||||||
def connect(self):
|
def connect(self):
|
||||||
self.log("Connecting...")
|
|
||||||
self.type = "out"
|
self.type = "out"
|
||||||
if self.ip.endswith(".onion"):
|
if self.ip.endswith(".onion"):
|
||||||
if not self.server.tor_manager or not self.server.tor_manager.enabled:
|
if not self.server.tor_manager or not self.server.tor_manager.enabled:
|
||||||
|
|
|
@ -173,6 +173,7 @@ class ConnectionServer(object):
|
||||||
self.num_outgoing += 1
|
self.num_outgoing += 1
|
||||||
self.ips[key] = connection
|
self.ips[key] = connection
|
||||||
self.connections.append(connection)
|
self.connections.append(connection)
|
||||||
|
connection.log("Connecting... (site: %s)" % site)
|
||||||
succ = connection.connect()
|
succ = connection.connect()
|
||||||
if not succ:
|
if not succ:
|
||||||
connection.close("Connection event return error")
|
connection.close("Connection event return error")
|
||||||
|
|
Loading…
Reference in a new issue