mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 04:42:54 -05:00
fix amt notls always using tls, fix tls undefined, amt timeout shortened, commander typo fix
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
@@ -291,7 +291,7 @@ var CreateWsmanComm = function (host, port, user, pass, tls, tlsoptions, mpsConn
|
||||
}
|
||||
obj.socket = obj.tls.connect(obj.port, obj.host, options, obj.xxOnSocketConnected);
|
||||
obj.socket.setEncoding('binary');
|
||||
obj.socket.setTimeout(60000); // Set socket idle timeout
|
||||
obj.socket.setTimeout(28000); // Set socket idle timeout of 28 seconds
|
||||
obj.socket.on('data', obj.xxOnSocketData);
|
||||
obj.socket.on('close', obj.xxOnSocketClosed);
|
||||
obj.socket.on('timeout', obj.destroy);
|
||||
|
||||
Reference in New Issue
Block a user