FreedomPrevails / JSMTProxy

High Performance NodeJS MTProto Proxy
MIT License
316 stars 129 forks source link

Check that secret is a valid hex number #39

Open HamidrezaEqbal opened 5 years ago

HamidrezaEqbal commented 5 years ago

if a user enter an invalid secret in config file, (for example use letter 's' in secret string) the Buffer.from(configObj.secret, 'hex') will trim it and user won't be notified that the entered secret is invalid