mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 18:54:58 +00:00
fix: preserve dns pinning for strict web SSRF fetches
This commit is contained in:
@@ -220,6 +220,7 @@ async function uploadSlackFile(params: {
|
||||
},
|
||||
policy: SLACK_UPLOAD_SSRF_POLICY,
|
||||
proxy: "env",
|
||||
dangerouslyAllowEnvProxyWithoutPinnedDns: true,
|
||||
auditContext: "slack-upload-file",
|
||||
});
|
||||
try {
|
||||
|
||||
@@ -168,6 +168,7 @@ describe("sendMessageSlack file upload with user IDs", () => {
|
||||
expect.objectContaining({
|
||||
url: "https://uploads.slack.test/upload",
|
||||
proxy: "env",
|
||||
dangerouslyAllowEnvProxyWithoutPinnedDns: true,
|
||||
auditContext: "slack-upload-file",
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user