mscdex / socksv5

SOCKS protocol version 5 server and client implementations for node.js
MIT License
400 stars 121 forks source link

Server: pass handleProxyError to connection handlers #36

Open alexkirsz opened 6 years ago

alexkirsz commented 6 years ago

Hey,

Right now, there's no way to programmatically write out an error to the underlying socket. As such, there's no good way to proxy connections manually since we can't propagate errors.

This PR provides the handleProxyError function to the connection event handlers.

Cheers, Alex