mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 18:11:54 +08:00
using https with self-signed cert
This commit is contained in:
@@ -20,7 +20,7 @@ var session = new function() {
|
||||
};
|
||||
|
||||
this.startPoller = function() {
|
||||
__ws = new WebSocket("ws://" + location.host + "/kvmd/ws");
|
||||
__ws = new WebSocket((location.protocol == "https:" ? "wss" : "ws") + "://" + location.host + "/kvmd/ws");
|
||||
__ws.onopen = __wsOpenHandler;
|
||||
__ws.onmessage = __wsMessageHandler;
|
||||
__ws.onerror = __wsErrorHandler;
|
||||
|
||||
Reference in New Issue
Block a user