You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wildcard subdomains in NO_PROXY are not respected #10710
I'm using a proxy with opencode TUI. I want to exclude all subdomains of a certain domain from going through it. I'm doing this by adding *.example.com to $NO_PROXY. However, opencode is still routing calls to a provider on foo.bar.example.com through the proxy. Only if I specify the full domain foo.bar.example.com does it function correctly.
Both issues describe the same problem where wildcard NO_PROXY entries (e.g., *.example.com) are not being respected, requiring full domain specification as a workaround.
Feel free to ignore if this doesn't address your specific case.
I've added a specific regression test for this case:
test("matches deep subdomain wildcards (#10710)",()=>{expect(shouldBypassProxy("foo.bar.example.com",["*.example.com"])).toBe(true)expect(shouldBypassProxy("a.b.c.d.example.com",["*.example.com"])).toBe(true)})
The fix works independently of Bun's native proxy handling - we implement our own pattern matching.
Activity
github-actions commentedon Jan 26, 2026
This issue might be a duplicate of existing issues. Please check:
Both issues describe the same problem where wildcard NO_PROXY entries (e.g.,
*.example.com) are not being respected, requiring full domain specification as a workaround.Feel free to ignore if this doesn't address your specific case.
rekram1-node commentedon Jan 26, 2026
Think this is probably a bun bug, ur using the tui right?
ashenstrata commentedon Jan 26, 2026
Yes, the TUI
Thesam1798 commentedon Jan 27, 2026
Fix available in PR #10856
This issue is specifically addressed by PR #10856.
Your use case:
Provider on
foo.bar.example.comshould bypass the proxy.Our implementation:
The
shouldBypassProxy()function inpackages/opencode/src/util/fetch.tshandles wildcards correctly:This means
*.example.commatches:foo.example.comfoo.bar.example.coma.b.c.d.example.comI've added a specific regression test for this case:
The fix works independently of Bun's native proxy handling - we implement our own pattern matching.
github-actions commentedon Mar 30, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.