summaryrefslogtreecommitdiff
path: root/kvmd/apps/vnc/rfb/stream.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-07-23 11:38:27 +0300
committerDevaev Maxim <[email protected]>2020-07-23 11:38:27 +0300
commitca3641c85b4231106acb259c9cdae6fca40e2fef (patch)
tree880df9fd8f42edfc309aa717f4f18c3042d255e0 /kvmd/apps/vnc/rfb/stream.py
parent1d7f949b9e33195ec584382cf9bdb73829341c45 (diff)
client port
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 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: