Skip to content

fix(provider): allow remote local-network hosts when proxy env vars are set#24070

Closed
jeevan6996 wants to merge 1 commit intoanomalyco:devfrom
jeevan6996:fix-23900-remote-host-no-proxy
Closed

fix(provider): allow remote local-network hosts when proxy env vars are set#24070
jeevan6996 wants to merge 1 commit intoanomalyco:devfrom
jeevan6996:fix-23900-remote-host-no-proxy

Conversation

@jeevan6996
Copy link
Copy Markdown

Summary

  • detect local-network and LAN-style baseURL hosts (private IP ranges, .local, single-label hostnames)
  • automatically add those hosts to NO_PROXY/no_proxy when HTTP(S)_PROXY is configured so requests bypass corporate proxies
  • keep public hosts proxied; add tests for private-host and public-host behavior

Testing

  • bun test test/provider/provider.test.ts --test-name-pattern ensureNoProxyForBaseURL
  • bun test test/provider/provider.test.ts --test-name-pattern plugin\ config\ providers\ persist\ after\ instance\ dispose|plugin\ config\ enabled\ and\ disabled\ providers\ are\ honored

Closes #23900

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Apr 23, 2026
@github-actions
Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions
Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Apr 24, 2026
@github-actions github-actions Bot closed this Apr 24, 2026
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.

Cannot connect to API when LM Host is a remote host

1 participant