diff options
author | Devaev Maxim <[email protected]> | 2020-06-05 06:27:23 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-06-05 06:27:23 +0300 |
commit | 83a8eb8dd2d0a8e7734ea47f8c186f762d6a57ff (patch) | |
tree | 587e2f83cd389cb0d5fd4f947aad8e4be1e079cd /kvmd/apps/vnc/rfb/stream.py | |
parent | 1eb440b060d412f4f65431f8e3a2feed446facfd (diff) |
proper logs
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 5a7b1298..0382b354 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 "[%s]:%d" % (writer.transport.get_extra_info("peername")[:2]) + return str(writer.transport.get_extra_info("peername")[0]) async def rfb_close_writer(writer: asyncio.StreamWriter) -> bool: |