diff options
author | Devaev Maxim <[email protected]> | 2020-07-23 11:38:27 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-07-23 11:38:27 +0300 |
commit | ca3641c85b4231106acb259c9cdae6fca40e2fef (patch) | |
tree | 880df9fd8f42edfc309aa717f4f18c3042d255e0 /kvmd/apps/vnc/rfb/stream.py | |
parent | 1d7f949b9e33195ec584382cf9bdb73829341c45 (diff) |
client port
Diffstat (limited to 'kvmd/apps/vnc/rfb/stream.py')
-rw-r--r-- | kvmd/apps/vnc/rfb/stream.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/apps/vnc/rfb/stream.py b/kvmd/apps/vnc/rfb/stream.py index f08da178..3f2d38b8 100644 --- a/kvmd/apps/vnc/rfb/stream.py +++ b/kvmd/apps/vnc/rfb/stream.py @@ -32,7 +32,7 @@ from .errors import RfbConnectionError # ===== def rfb_format_remote(writer: asyncio.StreamWriter) -> str: - return str(writer.transport.get_extra_info("peername")[0]) + return "[%s]:%d" % (writer.transport.get_extra_info("peername")[:2]) async def rfb_close_writer(writer: asyncio.StreamWriter) -> bool: |