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.
Parameters
Section titled “Parameters”versionOutput?
Section titled “versionOutput?”() => string | null
Override for capturing slirp4netns --version stdout
(default: execFileSync wrapper), trimmed or null on throw.
Returns
Section titled “Returns”boolean