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:
parent
160a79a7d2
commit
5eef998292
2
debian/control
vendored
2
debian/control
vendored
@ -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/
|
||||
|
||||
|
13
debian/patches/fix-websocket-binary-support-test.patch
vendored
Normal file
13
debian/patches/fix-websocket-binary-support-test.patch
vendored
Normal 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
1
debian/patches/series
vendored
Normal file
@ -0,0 +1 @@
|
||||
fix-websocket-binary-support-test.patch
|
2
debian/rules
vendored
2
debian/rules
vendored
@ -13,4 +13,4 @@ build:
|
||||
make -C utils rebind.so
|
||||
|
||||
%:
|
||||
dh ${@}
|
||||
dh ${@} --with quilt
|
||||
|
Loading…
x
Reference in New Issue
Block a user