Files
openclaw/test/helpers/gateway/android-node-capabilities-policy-source.ts
2026-06-04 01:48:32 -04:00

9 lines
396 B
TypeScript

import type { GatewayConnectionDetails } from "../../../src/gateway/call.js";
// Test helper for deciding when Android node policy config should be fetched remotely.
/** Return true when gateway details represent a remote node, not local loopback. */
export function shouldFetchRemotePolicyConfig(details: GatewayConnectionDetails): boolean {
return details.urlSource !== "local loopback";
}