diff --git a/agent/sandbox.go b/agent/sandbox.go index 84132cb2..a7c258cc 100644 --- a/agent/sandbox.go +++ b/agent/sandbox.go @@ -200,7 +200,8 @@ func SandboxEgressPolicy(ctx context.Context) *sandbox.EgressPolicy { // sandboxScopeDialContext wraps baseDial so every TCP connection made by panel // WebFetch in ARTEX_SANDBOX=required mode validates and pins the target IP via // the task's sandbox.EgressPolicy (blocking non-scope IPs, IMDS, loopback, -// RFC1918, and IPv6 across all hops and redirects). +// RFC1918, and IPv6). It sees each hop on a direct connection; through a proxy +// it only sees the proxy, and sandboxRedirectCheck checks the hop. func sandboxScopeDialContext(policy *sandbox.EgressPolicy, baseDial func(ctx context.Context, network, addr string) (net.Conn, error)) func(ctx context.Context, network, addr string) (net.Conn, error) { return SandboxScopeDialContext("WebFetch", policy, baseDial) }