mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
## Summary - Fix NO_PROXY environment variable to properly respect port numbers like Node.js and curl do - Previously `NO_PROXY=localhost:1234` would bypass proxy for all requests to localhost regardless of port - Now entries with ports (e.g., `localhost:8080`) do exact host:port matching, while entries without ports continue to use suffix matching ## Test plan - Added tests in `test/js/bun/http/proxy.test.js` covering: - [x] Bypass proxy when NO_PROXY matches host:port exactly - [x] Use proxy when NO_PROXY has different port - [x] Bypass proxy when NO_PROXY has host only (no port) - existing behavior preserved - [x] Handle NO_PROXY with multiple entries including port - Verified existing proxy tests still pass 🤖 Generated with [Claude Code](https://claude.ai/code) --------- Co-authored-by: Claude Bot <claude-bot@bun.sh> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>