mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 11:31:41 +00:00
fix: harden voice-call webhook verification
This commit is contained in:
@@ -12,6 +12,10 @@ export function verifyTwilioProviderWebhook(params: {
|
||||
publicUrl: params.currentPublicUrl || undefined,
|
||||
allowNgrokFreeTierLoopbackBypass: params.options.allowNgrokFreeTierLoopbackBypass ?? false,
|
||||
skipVerification: params.options.skipVerification,
|
||||
allowedHosts: params.options.webhookSecurity?.allowedHosts,
|
||||
trustForwardingHeaders: params.options.webhookSecurity?.trustForwardingHeaders,
|
||||
trustedProxyIPs: params.options.webhookSecurity?.trustedProxyIPs,
|
||||
remoteIP: params.ctx.remoteAddress,
|
||||
});
|
||||
|
||||
if (!result.ok) {
|
||||
|
||||
Reference in New Issue
Block a user