mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 10:41:25 +00:00
fix(security): prevent gatewayUrl SSRF
This commit is contained in:
@@ -20,7 +20,7 @@ describe("gateway tool defaults", () => {
|
||||
expect(opts.url).toBeUndefined();
|
||||
});
|
||||
|
||||
it("passes through explicit overrides", async () => {
|
||||
it("accepts allowlisted gatewayUrl overrides (SSRF hardening)", async () => {
|
||||
callGatewayMock.mockResolvedValueOnce({ ok: true });
|
||||
await callGatewayTool(
|
||||
"health",
|
||||
|
||||
Reference in New Issue
Block a user