summaryrefslogtreecommitdiff
path: root/kvmd/apps/vnc/rfb/stream.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-06-05 06:27:23 +0300
committerDevaev Maxim <[email protected]>2020-06-05 06:27:23 +0300
commit83a8eb8dd2d0a8e7734ea47f8c186f762d6a57ff (patch)
tree587e2f83cd389cb0d5fd4f947aad8e4be1e079cd /kvmd/apps/vnc/rfb/stream.py
parent1eb440b060d412f4f65431f8e3a2feed446facfd (diff)
proper logs
Diffstat (limited to 'kvmd/apps/vnc/rfb/stream.py')
-rw-r--r--kvmd/apps/vnc/rfb/stream.py2
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: