1
0
mirror of https://github.com/Ylianst/MeshCommander synced 2025-12-06 06:03:20 +00:00

Fix MeshCentral redir and undefined exception

This commit is contained in:
jsastriawan
2020-08-20 18:13:18 -07:00
parent fe7c54d443
commit ec08f90db8
2 changed files with 3 additions and 2 deletions

View File

@@ -97,6 +97,7 @@ var CreateAmtRedirect = function (module) {
obj.xxOnSocketData = function (data) {
if (!data || obj.connectstate == -1) return;
if (typeof(data)=='string') {data = new Buffer(data,'binary')}
// Redirection tracing
if (urlvars && urlvars['redirtrace']) {
var datastr = arrToStr(new Uint8Array(data));