Commit 2bd65cc
fix: set NO_PROXY for host gateway to bypass Squid for MCP (#554)
The iptables NAT bypass from v0.13.10 prevents DNAT redirection,
but HTTP_PROXY env var still causes HTTP clients (like Codex's
reqwest) to send MCP traffic through Squid as a forward proxy.
Concurrent SSE connections through Squid crash it (comm.cc:1583).
Set NO_PROXY with host.docker.internal and the network gateway IP
when --enable-host-access is enabled, so MCP gateway traffic
bypasses both DNAT and the forward proxy.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e7645f9 commit 2bd65cc
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
335 | 347 | | |
336 | 348 | | |
337 | 349 | | |
| |||
0 commit comments