mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
### What does this PR do? Extract NO_PROXY checking logic from getHttpProxyFor into a reusable isNoProxy method on the env Loader. This allows both fetch() and WebSocket to check NO_PROXY even when a proxy is explicitly provided via the proxy option (not just via http_proxy env var). Changes: - env_loader.zig: Extract isNoProxy() from getHttpProxyFor() - FetchTasklet.zig: Check isNoProxy() before using explicit proxy - WebSocket.cpp: Check Bun__isNoProxy() before using explicit proxy - virtual_machine_exports.zig: Export Bun__isNoProxy for C++ access - Add NO_PROXY tests for both fetch and WebSocket proxy paths ### How did you verify your code works? Tests --------- Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>