MCPcopy Create free account
hub / github.com/FIND-Lab/AgentWard / isSafeGatewayBind

Function isSafeGatewayBind

layers/foundation-scan.ts:689–696  ·  view source on GitHub ↗
(bind: string | null)

Source from the content-addressed store, hash-verified

687}
688
689function isSafeGatewayBind(bind: string | null): boolean {
690 if (!bind) return false;
691 const normalized = bind.trim().toLowerCase();
692 return normalized === "loopback"
693 || normalized === "127.0.0.1"
694 || normalized === "localhost"
695 || normalized === "::1";
696}
697
698function detectGatewayExposureMisconfiguration(config: OpenClawConfig): string | null {
699 const root = getRecord(config);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected