Skip to content

detectEgressHostLoopback

detectEgressHostLoopback(deps?): boolean

Defined in: src/egress.ts:245

Detect whether the host’s slirp4netns is recent enough to route the host-loopback gateway (10.0.2.2 → host 127.0.0.1), gating agent→Shepherd reachability. Cached per process. Best-effort: NEVER throws — a capture failure or unparseable version is false.

() => string | null

Override for capturing slirp4netns --version stdout (default: execFileSync wrapper), trimmed or null on throw.

boolean