mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 04:51:25 +00:00
fix(ssrf): centralize host/ip block checks
This commit is contained in:
@@ -99,7 +99,7 @@ describe("buildGatewayCronService", () => {
|
||||
|
||||
loadConfigMock.mockReturnValue(cfg);
|
||||
fetchWithSsrFGuardMock.mockRejectedValue(
|
||||
new SsrFBlockedError("Blocked: private/internal IP address"),
|
||||
new SsrFBlockedError("Blocked: resolves to private/internal/special-use IP address"),
|
||||
);
|
||||
|
||||
const state = buildGatewayCronService({
|
||||
|
||||
Reference in New Issue
Block a user