mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-12-03 21:17:28 +00:00
docs: correct the sandbox dialer comment about proxy redirects
The dialer sees each hop on a direct connection only. Through a proxy it sees the proxy, and sandboxRedirectCheck checks the hop. The old comment claimed all hops and redirects, which contradicted the redirect check added in this branch.
This commit is contained in:
parent
44644b075e
commit
09e1d8384a
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue