]> git.proxmox.com Git - novnc-pve.git/commitdiff
set default WS protocol again to "binary"
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 17 May 2021 07:45:15 +0000 (09:45 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 17 May 2021 08:58:10 +0000 (10:58 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/patches/0013-Revert-Remove-the-default-value-of-wsProtocols.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0013-Revert-Remove-the-default-value-of-wsProtocols.patch b/debian/patches/0013-Revert-Remove-the-default-value-of-wsProtocols.patch
new file mode 100644 (file)
index 0000000..e73bc59
--- /dev/null
@@ -0,0 +1,44 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Thomas Lamprecht <t.lamprecht@proxmox.com>
+Date: Mon, 17 May 2021 09:43:35 +0200
+Subject: [PATCH] Revert "Remove the default value of wsProtocols"
+
+This reverts commit c912230309806aacbae4295faf7ad6406da97617.
+
+We very-much depend on the WS protocol default of 'binary', for now
+lets just revert it here, albeit it could be externally set..
+
+Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
+---
+ core/rfb.js | 3 ++-
+ docs/API.md | 3 +--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/core/rfb.js b/core/rfb.js
+index 85c7836..f049246 100644
+--- a/core/rfb.js
++++ b/core/rfb.js
+@@ -87,7 +87,8 @@ export default class RFB extends EventTargetMixin {
+         this._rfbCredentials = options.credentials || {};
+         this._shared = 'shared' in options ? !!options.shared : true;
+         this._repeaterID = options.repeaterID || '';
+-        this._wsProtocols = options.wsProtocols || [];
++        this._wsProtocols = options.wsProtocols || ['binary'];
++        this._showDotCursor = options.showDotCursor || false;
+         // Internal state
+         this._rfbConnectionState = '';
+diff --git a/docs/API.md b/docs/API.md
+index d78360a..d55a234 100644
+--- a/docs/API.md
++++ b/docs/API.md
+@@ -195,8 +195,7 @@ connection to a specified VNC server.
+         encountered.
+     `wsProtocols`
+-      - An `Array` of `DOMString`s specifying the sub-protocols to use
+-        in the WebSocket connection. Empty by default.
++      - Protocols to use in the WebSocket connection, the default is: ['binary']
+ #### connect
index 0bfea05401e4d5d3fb642b5b7c830304515c4f5e..0d32df555ed36b473634b7da09a2609546f588ca 100644 (file)
@@ -10,3 +10,4 @@
 0010-use-only-app.js.patch
 0011-add-localCursor-setting-to-rfb.patch
 0012-pass-custom-command-to-vnc.patch
+0013-Revert-Remove-the-default-value-of-wsProtocols.patch