From 38dabe850b582616b01ea388f83b0add9e8a9f4e Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Mon, 17 Feb 2020 19:15:14 -0400 Subject: [PATCH] IS_GUN_AUTH event should not be encrypted --- utils/encryptionStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/encryptionStore.js b/utils/encryptionStore.js index 6505c0cb..d00e93de 100644 --- a/utils/encryptionStore.js +++ b/utils/encryptionStore.js @@ -6,7 +6,7 @@ const { Buffer } = require('buffer') const APIKeyPair = new Map() const authorizedDevices = new Map() -const nonEncryptedEvents = ['ping', 'disconnect'] +const nonEncryptedEvents = ['ping', 'disconnect', 'IS_GUN_AUTH'] const Encryption = { isNonEncrypted: event => nonEncryptedEvents.includes(event),