summaryrefslogtreecommitdiff
path: root/kvmd/apps/vnc/server.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-11-04 18:59:50 +0200
committerMaxim Devaev <[email protected]>2024-11-04 18:59:50 +0200
commit0010dd1d114d5c03b7397394b8e12dee5908669d (patch)
tree06c0f368984ea69d041ad518dc15638db8036f96 /kvmd/apps/vnc/server.py
parent7ef2e16b51eab24897cc6447c826a5a1c2b8efed (diff)
pikvm/pikvm#1420: VNC: Ignore CUT event 3 seconds after connection
Diffstat (limited to 'kvmd/apps/vnc/server.py')
-rw-r--r--kvmd/apps/vnc/server.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/kvmd/apps/vnc/server.py b/kvmd/apps/vnc/server.py
index e8524a38..5abca7b0 100644
--- a/kvmd/apps/vnc/server.py
+++ b/kvmd/apps/vnc/server.py
@@ -81,6 +81,7 @@ class _Client(RfbClient): # pylint: disable=too-many-instance-attributes
mouse_output: str,
keymap_name: str,
symmap: dict[int, dict[int, str]],
+ allow_cut_after: float,
kvmd: KvmdClient,
streamers: list[BaseStreamerClient],
@@ -100,6 +101,7 @@ class _Client(RfbClient): # pylint: disable=too-many-instance-attributes
tls_timeout=tls_timeout,
x509_cert_path=x509_cert_path,
x509_key_path=x509_key_path,
+ allow_cut_after=allow_cut_after,
vnc_passwds=list(vnc_credentials),
vencrypt=vencrypt,
none_auth_only=none_auth_only,
@@ -444,6 +446,7 @@ class VncServer: # pylint: disable=too-many-instance-attributes
desired_fps: int,
mouse_output: str,
keymap_path: str,
+ allow_cut_after: float,
kvmd: KvmdClient,
streamers: list[BaseStreamerClient],
@@ -501,6 +504,7 @@ class VncServer: # pylint: disable=too-many-instance-attributes
mouse_output=mouse_output,
keymap_name=keymap_name,
symmap=symmap,
+ allow_cut_after=allow_cut_after,
kvmd=kvmd,
streamers=streamers,
vnc_credentials=(await self.__vnc_auth_manager.read_credentials())[0],