mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-18 00:23:25 -06:00
577a0642fa
* fix(plugin-sdk): expose loopback host classifier * fix(ollama): remove stale host normalizer import * chore: keep release notes in PR context
33 lines
1.1 KiB
TypeScript
33 lines
1.1 KiB
TypeScript
// Narrow SSRF helpers for extensions that need pinned-dispatcher and policy
|
|
// utilities without loading the full infra-runtime surface.
|
|
|
|
export {
|
|
closeDispatcher,
|
|
createPinnedDispatcher,
|
|
SsrFBlockedError,
|
|
isBlockedHostnameOrIp,
|
|
isPrivateIpAddress,
|
|
resolvePinnedHostname,
|
|
resolvePinnedHostnameWithPolicy,
|
|
resolveSsrFPolicyForUrl,
|
|
ssrfPolicyFromHttpBaseUrlAllowedHostname,
|
|
ssrfPolicyFromHttpBaseUrlAllowedOrigin,
|
|
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,
|
|
createLegacyPrivateNetworkDoctorContract,
|
|
hasLegacyFlatAllowPrivateNetworkAlias,
|
|
isPrivateNetworkOptInEnabled,
|
|
mergeSsrFPolicies,
|
|
migrateLegacyFlatAllowPrivateNetworkAlias,
|
|
ssrfPolicyFromDangerouslyAllowPrivateNetwork,
|
|
ssrfPolicyFromPrivateNetworkOptIn,
|
|
ssrfPolicyFromAllowPrivateNetwork,
|
|
} from "./ssrf-policy.js";
|
|
export { isLoopbackHost, isPrivateOrLoopbackHost } from "../gateway/net.js";
|