mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Implements SOCKS5 and SOCKS5h proxy support as requested in issue #16812. This adds native SOCKS proxy functionality to Bun's HTTP client: - Support for socks5:// and socks5h:// protocols - Environment variable support (http_proxy, https_proxy) - Direct proxy option support in fetch() - Full SOCKS5 handshake implementation - Integration with existing HTTP proxy infrastructure Key changes: - Add SOCKSProxy.zig implementing SOCKS5 protocol - Update HTTPThread.zig to recognize SOCKS protocols - Modify HTTP client to handle SOCKS proxy tunneling - Add URL helpers for SOCKS protocol detection - Include comprehensive test coverage Resolves issue #16812 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>