various additions
parent
a6b81139a3
commit
fb82ee1a60
|
@ -34,7 +34,10 @@ export default class CSCLI {
|
|||
delete verificationParsed.HMAC;
|
||||
verificationParsed = JSON.stringify(verificationParsed);
|
||||
const verification = this.verifyConnection(parsed.HMAC, verificationParsed);
|
||||
if (!verification) return socket.destroy();
|
||||
if (!verification) {
|
||||
socket.write('UNAUTHORIZED TO EXECUTE ON THIS SERVER\n');
|
||||
return socket.destroy();
|
||||
}
|
||||
// FINISH VERIFICATION CHECKS
|
||||
switch (parsed.Type) {
|
||||
case 'lock':
|
||||
|
|
Loading…
Reference in New Issue