(bind: string | null)
| 687 | } |
| 688 | |
| 689 | function 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 | |
| 698 | function detectGatewayExposureMisconfiguration(config: OpenClawConfig): string | null { |
| 699 | const root = getRecord(config); |
no outgoing calls
no test coverage detected