forked from engineering/cloudservices
various additions
parent
a6b81139a3
commit
fb82ee1a60
|
@ -34,7 +34,10 @@ export default class CSCLI {
|
||||||
delete verificationParsed.HMAC;
|
delete verificationParsed.HMAC;
|
||||||
verificationParsed = JSON.stringify(verificationParsed);
|
verificationParsed = JSON.stringify(verificationParsed);
|
||||||
const verification = this.verifyConnection(parsed.HMAC, 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
|
// FINISH VERIFICATION CHECKS
|
||||||
switch (parsed.Type) {
|
switch (parsed.Type) {
|
||||||
case 'lock':
|
case 'lock':
|
||||||
|
|
Loading…
Reference in New Issue