mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 11:23:58 +00:00
* refactor(plugin-sdk): centralize private-network opt-in semantics * fix(config): migrate bundled private-network aliases * fix(config): add bundled private-network doctor adapters * fix(config): expose bundled channel migration hooks * fix(config): prefer canonical private-network key * test(config): refresh rebased private-network outputs
24 lines
846 B
TypeScript
24 lines
846 B
TypeScript
// Narrow SSRF helpers for extensions that need pinned-dispatcher and policy
|
|
// utilities without loading the full infra-runtime surface.
|
|
|
|
export {
|
|
closeDispatcher,
|
|
createPinnedDispatcher,
|
|
isBlockedHostnameOrIp,
|
|
resolvePinnedHostname,
|
|
resolvePinnedHostnameWithPolicy,
|
|
type LookupFn,
|
|
type SsrFPolicy,
|
|
} from "../infra/net/ssrf.js";
|
|
export { formatErrorMessage } from "../infra/errors.js";
|
|
export { fetchWithSsrFGuard } from "../infra/net/fetch-guard.js";
|
|
export {
|
|
assertHttpUrlTargetsPrivateNetwork,
|
|
buildHostnameAllowlistPolicyFromSuffixAllowlist,
|
|
hasLegacyFlatAllowPrivateNetworkAlias,
|
|
isPrivateNetworkOptInEnabled,
|
|
migrateLegacyFlatAllowPrivateNetworkAlias,
|
|
ssrfPolicyFromPrivateNetworkOptIn,
|
|
ssrfPolicyFromAllowPrivateNetwork,
|
|
} from "./ssrf-policy.js";
|
|
export { isPrivateOrLoopbackHost } from "../gateway/net.js";
|