-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support SOCKS proxy #540
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some tests would be nice 🙃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks Jirka! It would be great to add at least one unit/integration test for the SOCKS proxy, perhaps extend our existing test suite
README.md
Outdated
@@ -2,7 +2,7 @@ | |||
|
|||
[](http://badge.fury.io/js/proxy-chain) | |||
|
|||
A programmable proxy server (think Squid) with support for SSL/TLS, authentication, upstream proxy chaining, | |||
A programmable proxy server (think Squid) with support for SSL/TLS, authentication, upstream proxy chaining (supports SOCKS protocol), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which versions of SOCKS?
import { forwardSocks } from './forward_socks'; | ||
import { chainSocks } from './chain_socks'; | ||
|
||
const SOCKS_PROTOCOLS = ['socks:', 'socks4:', 'socks4a:', 'socks5:', 'socks5h:']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please can we document this list of supported protocols in README?
might wanna remove |
Will do, thanks for noticing 🙏 |
proxy-chain/src/anonymize_proxy.ts Lines 41 to 45 in a1ac3f2
|
Thanks for reporting this, fix is in #545 and will be merged and released soon. |
This has been fixed in |
This PR introduces support for SOCKS protocol.