diff options
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: |