5
0
mirror of git://git.proxmox.com/git/novnc-pve.git synced 2025-01-20 18:03:51 +03:00
novnc-pve/debian/patches/fix-websocket-binary-support-test.patch
Dietmar Maurer 5eef998292 fix binary type detection
We need to use wss:// instead of ws:// to avoid security errors.
2014-06-18 14:18:47 +02:00

14 lines
621 B
Diff

Index: new/include/websock.js
===================================================================
--- new.orig/include/websock.js 2014-06-13 07:20:22.000000000 +0200
+++ new/include/websock.js 2014-06-18 14:12:20.000000000 +0200
@@ -282,7 +282,7 @@
// TODO: this sucks, the property should exist on the prototype
// but it does not.
try {
- if (bt && ('binaryType' in (new WebSocket("ws://localhost:17523")))) {
+ if (bt && ('binaryType' in (new WebSocket("wss://localhost:17523")))) {
Util.Info("Detected binaryType support in WebSockets");
wsbt = true;
}