Skip to main content

ensure_loopback_bypasses_proxy

Function ensure_loopback_bypasses_proxy 

Source
pub(crate) fn ensure_loopback_bypasses_proxy()
Expand description

Ensure the loopback control plane is never tunneled through an HTTP proxy.

Robonix’s atlas (gRPC), the executor↔package MCP calls (HTTP), and the CLI itself all talk over 127.0.0.1 / localhost. If the environment has http_proxy set without those hosts in no_proxy, every local call gets routed through the proxy and fails (gRPC “Socket closed”, MCP “502 Bad Gateway”). Merge the loopback hosts into no_proxy/NO_PROXY (preserving any existing entries, case-insensitively) so this process and every child it spawns — atlas, executor, pilot, the Python packages — bypass the proxy for the local control plane.