node-websocket-tunnel
node-websocket-tunnel copied to clipboard
"Unable to authenticate."?
hi。
node connect.js my-vps-ip:1443 WebSocket Tunnel Console v0.1 Remote Host: https://my-vps-ip:1443 Username: simon Password: ********************************** Authenticating ... (node:79533) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. Unable to authenticate.
how to fix it?
use buffer.from where ever u have used buffer
hi。
node connect.js my-vps-ip:1443 WebSocket Tunnel Console v0.1 Remote Host: https://my-vps-ip:1443 Username: simon Password: ********************************** Authenticating ... (node:79533) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. Unable to authenticate.
how to fix it?
use buffer.from where ever u have used buffer
@bhsingh1108 how to use "buffer"?can u explain it in detail?
@bhsingh1108 how to use "buffer"?can u explain it in detail?
just find out where ever u have used "buffer" in server.js and connect.js,change it to "buffer.from"......as buffer is depricated by node and new updated node version doesnot use it,thus use buffer.from
@bhsingh1108 how to use "buffer"?can u explain it in detail?
new Buffer(number) // Old Buffer.alloc(number) // New new Buffer(string) // Old Buffer.from(string) // New new Buffer(string, encoding) // Old Buffer.from(string, encoding) // New new Buffer(...arguments) // Old Buffer.from(...arguments) // New