Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
10 changes: 5 additions & 5 deletions nemoclaw/src/lib/subprocess-env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ const ALLOWED_ENV_PREFIXES = ["LC_", "XDG_", "OPENSHELL_", "GRPC_"];
// ── Public API ─────────────────────────────────────────────────

/**
* When any HTTP proxy is forwarded, ensure localhost and loopback traffic is
* not routed through it. Without this, tools that respect HTTP_PROXY (curl,
* Node.js http, Python requests) will tunnel loopback requests to the user's
* proxy (e.g. Privoxy), which fails with HTTP 500.
* When any HTTP proxy is forwarded, ensure local host-bound traffic is not
* routed through it. Without this, tools that respect HTTP_PROXY (curl, Node.js
* http, Python requests) will tunnel loopback or WSL Windows-host requests to
* the user's proxy (e.g. Privoxy), which fails with HTTP 500.
* See: #2616
*/
export function withLocalNoProxy(env: Record<string, string>): void {
Expand All @@ -62,7 +62,7 @@ export function withLocalNoProxy(env: Record<string, string>): void {
const current = env[key] ?? "";
const parts = current ? current.split(",").map((s) => s.trim()) : [];
let changed = false;
for (const host of ["localhost", "127.0.0.1"]) {
for (const host of ["localhost", "127.0.0.1", "host.docker.internal"]) {
if (!parts.includes(host)) {
parts.push(host);
changed = true;
Expand Down
Loading
Loading