Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/services/agent-environment/proxy-environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ export function buildProxyEnvironment(params: ProxyEnvironmentParams): void {
if (config.topologyAttach) {
noProxyHosts.push(...config.topologyAttach);
}
// The DIFC/cli-proxy host is addressed by proxy-aware clients directly and
// must bypass Squid even when it isn't listed in topologyAttach. Strip any
// ":port" suffix since undici matches NO_PROXY against the hostname only.
if (config.difcProxyHost) {
noProxyHosts.push(config.difcProxyHost.split(':')[0]);
}
}

// The MCP gateway is served on the network gateway (e.g. 172.30.0.1). In
Expand Down
Loading