mscdex / socksv5

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

Server: handle EHOSTDOWN #37

Open alexkirsz opened 6 years ago

alexkirsz commented 6 years ago

Hey,

connect/createConnection/Socket::connect can throw EHOSTDOWN. This ensures the handleProxyError function supports it and writes out REP.HOSTUNREACH to the client.

Cheers, Alex