From 287244d37682232cca23efed55dfe7e1ba74b5fd Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Thu, 26 Dec 2024 05:05:03 +0200 Subject: kvmd: disabled legacy API by default --- web/share/js/kvm/session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/share/js') diff --git a/web/share/js/kvm/session.js b/web/share/js/kvm/session.js index c2f13342..c9839aca 100644 --- a/web/share/js/kvm/session.js +++ b/web/share/js/kvm/session.js @@ -293,7 +293,7 @@ export function Session() { tools.httpGet("/api/auth/check", null, function(http) { if (http.status === 200) { - __ws = new WebSocket(`${tools.is_https ? "wss" : "ws"}://${location.host}/api/ws?legacy=0`); + __ws = new WebSocket(`${tools.is_https ? "wss" : "ws"}://${location.host}/api/ws`); __ws.sendHidEvent = (event) => __sendHidEvent(__ws, event.event_type, event.event); __ws.onopen = __wsOpenHandler; __ws.onmessage = __wsMessageHandler; -- cgit v1.2.3