Skip to content

fix(network): honor proxy env for node requests#512

Merged
jackwener merged 4 commits intojackwener:mainfrom
WSL0809:fix/network-proxy-env
Mar 27, 2026
Merged

fix(network): honor proxy env for node requests#512
jackwener merged 4 commits intojackwener:mainfrom
WSL0809:fix/network-proxy-env

Conversation

@WSL0809
Copy link
Copy Markdown
Contributor

@WSL0809 WSL0809 commented Mar 27, 2026

Fixes #510.

Respect proxy env vars for Node-side requests and downloads, while bypassing loopback addresses.

@jackwener jackwener force-pushed the fix/network-proxy-env branch from 8ff11ee to 6693acb Compare March 27, 2026 17:08
@jackwener jackwener merged commit ea0cf4d into jackwener:main Mar 27, 2026
@jackwener
Copy link
Copy Markdown
Owner

Thanks for the fix. I reviewed the proxy handling, pushed a couple of follow-up improvements onto your branch, and merged it.

What went in:

  • honors proxy env for Node-side requests and downloads
  • fixes NO_PROXY=host:80/443 default-port matching
  • falls back from HTTPS_PROXY to HTTP_PROXY for HTTPS requests when needed
  • keeps loopback addresses bypassed, including IPv6
  • delegates the env-proxy semantics to undici's EnvHttpProxyAgent

I also re-ran targeted tests and typecheck locally before merging. Thanks again for the contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Node-side fetch ignores proxy env vars and fails on proxy-required sites

2 participants