5
0
mirror of git://git.proxmox.com/git/novnc-pve.git synced 2025-01-21 22:03:51 +03:00

fix binary type detection

We need to use wss:// instead of ws:// to avoid security errors.
This commit is contained in:
Dietmar Maurer 2014-06-18 14:18:47 +02:00
parent 160a79a7d2
commit 5eef998292
4 changed files with 16 additions and 2 deletions

2
debian/control vendored
View File

@ -2,7 +2,7 @@ Source: novnc-pve
Section: web
Priority: optional
Maintainer: Proxmox Support Team <support@proxmox.com>
Build-Depends: debhelper (>= 7.0.0~)
Build-Depends: debhelper (>= 7.0.0~), quilt
Standards-Version: 3.8.3
Homepage: https://github.com/kanaka/noVNC/

View File

@ -0,0 +1,13 @@
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;
}

1
debian/patches/series vendored Normal file
View File

@ -0,0 +1 @@
fix-websocket-binary-support-test.patch

2
debian/rules vendored
View File

@ -13,4 +13,4 @@ build:
make -C utils rebind.so
%:
dh ${@}
dh ${@} --with quilt