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",