various additions

merge-requests/4/head
Matthew 2020-05-17 06:36:40 -04:00
parent a6b81139a3
commit fb82ee1a60
No known key found for this signature in database
GPG Key ID: D499B75C1390E321
1 changed files with 4 additions and 1 deletions

View File

@ -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':