node-websocket-tunnel icon indicating copy to clipboard operation
node-websocket-tunnel copied to clipboard

"Unable to authenticate."?

Open luckypoem opened this issue 6 years ago • 5 comments
trafficstars

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?

luckypoem avatar Oct 11 '19 10:10 luckypoem

use buffer.from where ever u have used buffer

bhsingh1108 avatar Aug 12 '20 07:08 bhsingh1108

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 avatar Aug 12 '20 07:08 bhsingh1108

@bhsingh1108 how to use "buffer"?can u explain it in detail?

briteming avatar Aug 12 '20 10:08 briteming

@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 avatar Aug 12 '20 10:08 bhsingh1108

@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

bhsingh1108 avatar Aug 12 '20 10:08 bhsingh1108