IS_GUN_AUTH event should not be encrypted

This commit is contained in:
Daniel Lugo 2020-02-17 19:15:14 -04:00
parent ca047a4441
commit 38dabe850b

View file

@ -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),