Skip to content
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

Add SOCKS support #16812

Open
erikschul opened this issue Jan 27, 2025 · 0 comments
Open

Add SOCKS support #16812

erikschul opened this issue Jan 27, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@erikschul
Copy link

What is the problem this feature would solve?

Currently Bun only supports HTTP proxy.
Bun's http module is incompatible with NodeJS solutions such as socks-proxy-agent, but it would be even better to use Bun's http module and have fewer external dependencies.

What is the feature you are proposing to solve the problem?

Request:

  • add support for SOCKS5 and SOCKS5h (DNS forwarding)
  • configure proxy via env (http_proxy or https_proxy=socks5h://...)
  • configure proxy via JavaScript (Bun API)

Related:

What alternatives have you considered?

No response

@erikschul erikschul added the enhancement New feature or request label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant