mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-21 17:47:00 +03:00
typo fixes
This commit is contained in:
parent
b52385406f
commit
b09f783cef
@ -3680,7 +3680,7 @@ function processConsoleCommand(cmd, args, rights, sessionid) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'mousetrails':
|
case 'mousetrails':
|
||||||
try { require('win-deskutils'); } catch (ex) { response = 'Unknown command "mousetrails", type "help" for list of avaialble commands.'; break; }
|
try { require('win-deskutils'); } catch (ex) { response = 'Unknown command "mousetrails", type "help" for list of available commands.'; break; }
|
||||||
var id = require('user-sessions').getProcessOwnerName(process.pid).tsid == 0 ? 1 : null;
|
var id = require('user-sessions').getProcessOwnerName(process.pid).tsid == 0 ? 1 : null;
|
||||||
switch (args['_'].length)
|
switch (args['_'].length)
|
||||||
{
|
{
|
||||||
@ -3701,7 +3701,7 @@ function processConsoleCommand(cmd, args, rights, sessionid) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'deskbackground':
|
case 'deskbackground':
|
||||||
try { require('win-deskutils'); } catch (ex) { response = 'Unknown command "deskbackground", type "help" for list of avaialble commands.'; break; }
|
try { require('win-deskutils'); } catch (ex) { response = 'Unknown command "deskbackground", type "help" for list of available commands.'; break; }
|
||||||
var id = require('user-sessions').getProcessOwnerName(process.pid).tsid == 0 ? 1 : null;
|
var id = require('user-sessions').getProcessOwnerName(process.pid).tsid == 0 ? 1 : null;
|
||||||
switch (args['_'].length)
|
switch (args['_'].length)
|
||||||
{
|
{
|
||||||
@ -3718,7 +3718,7 @@ function processConsoleCommand(cmd, args, rights, sessionid) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'taskbar':
|
case 'taskbar':
|
||||||
try { require('win-utils'); } catch (ex) { response = 'Unknown command "taskbar", type "help" for list of avaialble commands.'; break; }
|
try { require('win-utils'); } catch (ex) { response = 'Unknown command "taskbar", type "help" for list of available commands.'; break; }
|
||||||
switch (args['_'].length) {
|
switch (args['_'].length) {
|
||||||
case 1:
|
case 1:
|
||||||
case 2:
|
case 2:
|
||||||
@ -3741,7 +3741,7 @@ function processConsoleCommand(cmd, args, rights, sessionid) {
|
|||||||
break;
|
break;
|
||||||
case 'privacybar':
|
case 'privacybar':
|
||||||
if (process.platform != 'win32' || require('notifybar-desktop').DefaultPinned == null) {
|
if (process.platform != 'win32' || require('notifybar-desktop').DefaultPinned == null) {
|
||||||
response = 'Unknown command "privacybar", type "help" for list of avaialble commands.';
|
response = 'Unknown command "privacybar", type "help" for list of available commands.';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
switch (args['_'].length) {
|
switch (args['_'].length) {
|
||||||
@ -3774,7 +3774,7 @@ function processConsoleCommand(cmd, args, rights, sessionid) {
|
|||||||
case 'domaininfo':
|
case 'domaininfo':
|
||||||
{
|
{
|
||||||
if (process.platform != 'win32') {
|
if (process.platform != 'win32') {
|
||||||
response = 'Unknown command "cs", type "help" for list of avaialble commands.';
|
response = 'Unknown command "cs", type "help" for list of available commands.';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (global._domainQuery != null) {
|
if (global._domainQuery != null) {
|
||||||
@ -3822,7 +3822,7 @@ function processConsoleCommand(cmd, args, rights, sessionid) {
|
|||||||
break;
|
break;
|
||||||
case 'dhcp': // This command is only supported on Linux, this is because Linux does not give us the DNS suffix for each network adapter independently so we have to ask the DHCP server.
|
case 'dhcp': // This command is only supported on Linux, this is because Linux does not give us the DNS suffix for each network adapter independently so we have to ask the DHCP server.
|
||||||
{
|
{
|
||||||
try { require('linux-dhcp'); } catch (ex) { response = 'Unknown command "dhcp", type "help" for list of avaialble commands.'; break; }
|
try { require('linux-dhcp'); } catch (ex) { response = 'Unknown command "dhcp", type "help" for list of available commands.'; break; }
|
||||||
if (args['_'].length == 0) {
|
if (args['_'].length == 0) {
|
||||||
var j = require('os').networkInterfaces();
|
var j = require('os').networkInterfaces();
|
||||||
var ifcs = [];
|
var ifcs = [];
|
||||||
@ -3849,7 +3849,7 @@ function processConsoleCommand(cmd, args, rights, sessionid) {
|
|||||||
}
|
}
|
||||||
case 'cs':
|
case 'cs':
|
||||||
if (process.platform != 'win32') {
|
if (process.platform != 'win32') {
|
||||||
response = 'Unknown command "cs", type "help" for list of avaialble commands.';
|
response = 'Unknown command "cs", type "help" for list of available commands.';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
switch (args['_'].length) {
|
switch (args['_'].length) {
|
||||||
@ -3929,7 +3929,7 @@ function processConsoleCommand(cmd, args, rights, sessionid) {
|
|||||||
break;
|
break;
|
||||||
case 'dnsinfo':
|
case 'dnsinfo':
|
||||||
if (require('os').dns == null) {
|
if (require('os').dns == null) {
|
||||||
response = "Unknown command \"" + cmd + "\", type \"help\" for list of avaialble commands.";
|
response = "Unknown command \"" + cmd + "\", type \"help\" for list of available commands.";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
response = 'DNS Servers: ';
|
response = 'DNS Servers: ';
|
||||||
@ -4112,7 +4112,7 @@ function processConsoleCommand(cmd, args, rights, sessionid) {
|
|||||||
break;
|
break;
|
||||||
case 'uac':
|
case 'uac':
|
||||||
if (process.platform != 'win32') {
|
if (process.platform != 'win32') {
|
||||||
response = 'Unknown command "uac", type "help" for list of avaialble commands.';
|
response = 'Unknown command "uac", type "help" for list of available commands.';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (args['_'].length != 1) {
|
if (args['_'].length != 1) {
|
||||||
@ -4154,7 +4154,7 @@ function processConsoleCommand(cmd, args, rights, sessionid) {
|
|||||||
break;
|
break;
|
||||||
case 'kvmmode':
|
case 'kvmmode':
|
||||||
if (require('MeshAgent').maxKvmTileSize == null) {
|
if (require('MeshAgent').maxKvmTileSize == null) {
|
||||||
response = "Unknown command \"kvmmode\", type \"help\" for list of avaialble commands.";
|
response = "Unknown command \"kvmmode\", type \"help\" for list of available commands.";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (require('MeshAgent').maxKvmTileSize == 0) {
|
if (require('MeshAgent').maxKvmTileSize == 0) {
|
||||||
@ -4967,7 +4967,7 @@ function processConsoleCommand(cmd, args, rights, sessionid) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: { // This is an unknown command, return an error message
|
default: { // This is an unknown command, return an error message
|
||||||
response = "Unknown command \"" + cmd + "\", type \"help\" for list of avaialble commands.";
|
response = "Unknown command \"" + cmd + "\", type \"help\" for list of available commands.";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -575,7 +575,7 @@ module.exports.CreateMeshMail = function (parent, domain) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Device connetion and disconnection notifications
|
// Device connection and disconnection notifications
|
||||||
//
|
//
|
||||||
|
|
||||||
obj.deviceNotifications = {}; // UserId --> { timer, nodes: nodeid --> connectType }
|
obj.deviceNotifications = {}; // UserId --> { timer, nodes: nodeid --> connectType }
|
||||||
|
@ -469,7 +469,7 @@ module.exports.CreateServer = function (parent) {
|
|||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Device connetion and disconnection notifications
|
// Device connection and disconnection notifications
|
||||||
//
|
//
|
||||||
|
|
||||||
obj.deviceNotifications = {}; // UserId --> { timer, nodes: nodeid --> connectType }
|
obj.deviceNotifications = {}; // UserId --> { timer, nodes: nodeid --> connectType }
|
||||||
|
@ -50,7 +50,7 @@ var Channel = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Channel Definde
|
* Channel Defined
|
||||||
*/
|
*/
|
||||||
const RdpdrChannelDef = new type.Component({
|
const RdpdrChannelDef = new type.Component({
|
||||||
name: new type.BinaryString(Buffer.from('rdpdr' + '\x00\x00\x00', 'binary'), { readLength: new type.CallableValue(8) }),
|
name: new type.BinaryString(Buffer.from('rdpdr' + '\x00\x00\x00', 'binary'), { readLength: new type.CallableValue(8) }),
|
||||||
@ -239,7 +239,7 @@ function Client(transport) {
|
|||||||
this.clientNetworkData = gcc.clientNetworkData(new type.Component([RdpdrChannelDef, CliprdrChannelDef, RdpsndChannelDef]));
|
this.clientNetworkData = gcc.clientNetworkData(new type.Component([RdpdrChannelDef, CliprdrChannelDef, RdpsndChannelDef]));
|
||||||
this.clientSecurityData = gcc.clientSecurityData();
|
this.clientSecurityData = gcc.clientSecurityData();
|
||||||
|
|
||||||
// must be readed from protocol
|
// must be read from protocol
|
||||||
this.serverCoreData = null;
|
this.serverCoreData = null;
|
||||||
this.serverSecurityData = null;
|
this.serverSecurityData = null;
|
||||||
this.serverNetworkData = null;
|
this.serverNetworkData = null;
|
||||||
@ -414,7 +414,7 @@ Client.prototype.connectChannels = function(s) {
|
|||||||
self.recv(s);
|
self.recv(s);
|
||||||
});
|
});
|
||||||
|
|
||||||
// send client and sever gcc informations
|
// send client and sever gcc information
|
||||||
this.emit('connect',
|
this.emit('connect',
|
||||||
{
|
{
|
||||||
core : this.clientCoreData.obj,
|
core : this.clientCoreData.obj,
|
||||||
@ -497,7 +497,7 @@ Server.prototype.recvConnectInitial = function (s) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* State 2 in mcs server connetion automata
|
* State 2 in mcs server connection automata
|
||||||
*/
|
*/
|
||||||
Server.prototype.sendConnectResponse = function () {
|
Server.prototype.sendConnectResponse = function () {
|
||||||
var ccReq = gcc.writeConferenceCreateResponse(new type.Component([
|
var ccReq = gcc.writeConferenceCreateResponse(new type.Component([
|
||||||
|
Loading…
Reference in New Issue
Block a user