From fb82ee1a60493f0cc9705b044b888b13c7961a2e Mon Sep 17 00:00:00 2001 From: Matthew Ray Date: Sun, 17 May 2020 06:36:40 -0400 Subject: [PATCH] various additions --- src/cscli/main.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cscli/main.ts b/src/cscli/main.ts index eaa0134..930f184 100644 --- a/src/cscli/main.ts +++ b/src/cscli/main.ts @@ -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':