Make the address reporting homogenous to the IP for each protocol.

This commit is contained in:
Griatch 2016-02-20 16:19:12 +01:00
parent ddb87d6aea
commit a28ae2728e
3 changed files with 3 additions and 1 deletions

View file

@ -280,7 +280,7 @@ if SSH_ENABLED:
ssh_service.setName('EvenniaSSH%s' % pstring)
PORTAL.services.addService(ssh_service)
print(" ssl%s: %s" % (ifacestr, port))
print(" ssh%s: %s" % (ifacestr, port))
if WEBSERVER_ENABLED:

View file

@ -40,6 +40,7 @@ class TelnetProtocol(Telnet, StatefulTelnetProtocol, Session):
self.iaw_mode = False
self.no_lb_mode = False
client_address = self.transport.client
client_address = client_address[0] if client_address else None
# this number is counted down for every handshake that completes.
# when it reaches 0 the portal/server syncs their data
self.handshakes = 7 # naws, ttype, mccp, mssp, msdp, gmcp, mxp

View file

@ -50,6 +50,7 @@ class WebSocketClient(Protocol, Session):
"""
client_address = self.transport.client
client_address = client_address[0] if client_address else None
self.init_session("websocket", client_address, self.factory.sessionhandler)
# watch for dead links
self.transport.setTcpKeepAlive(1)