mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 09:01:54 +08:00
client port
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user