mirror of
https://github.com/evennia/evennia.git
synced 2026-03-25 17:26:32 +01:00
Make the address reporting homogenous to the IP for each protocol.
This commit is contained in:
parent
ddb87d6aea
commit
a28ae2728e
3 changed files with 3 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue