From 7e226ac86dbb2980c92df16733354cec38ddbe31 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Mon, 13 Dec 2021 13:16:03 -0800 Subject: [PATCH] Fixed IP KVM support on olver NodeJS. --- meshipkvm.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meshipkvm.js b/meshipkvm.js index f7082aa3..79602937 100644 --- a/meshipkvm.js +++ b/meshipkvm.js @@ -297,7 +297,7 @@ function CreateRaritanKX3Manager(parent, hostname, port, username, password) { setState(1); // 1 = Connecting obj.authCookie = null; if (retryTimer != null) { clearTimeout(retryTimer); retryTimer = null; } - const data = new TextEncoder().encode('is_dotnet=0&is_javafree=0&is_standalone_client=0&is_javascript_kvm_client=1&is_javascript_rsc_client=1&login=' + encodeURIComponent(username) + '&password=' + encodeURIComponent(password) + '&action_login=Login'); + const data = Buffer.from('is_dotnet=0&is_javafree=0&is_standalone_client=0&is_javascript_kvm_client=1&is_javascript_rsc_client=1&login=' + encodeURIComponent(username) + '&password=' + encodeURIComponent(password) + '&action_login=Login'); const options = { hostname: hostname, port: port, diff --git a/package.json b/package.json index e90d18a5..4dc3e243 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.9.58", + "version": "0.9.59", "keywords": [ "Remote Device Management", "Remote Device Monitoring",