sjitech / proxy-login-automator

A single node.js script to automatically inject user/password to http proxy server via a local forwarder
MIT License
392 stars 89 forks source link

Fix Buffer deprecation warning #24

Closed sturman closed 2 years ago

sturman commented 5 years ago

Fix #23

Fixed (node:1301) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

Used Variant 1 from Node.js documentation

jjqq2013 commented 2 years ago

@sturman thank you.