mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 18:08:27 +00:00
refactor(gateway): harden proxy client ip resolution
This commit is contained in:
@@ -55,6 +55,7 @@ type OpenResponsesHttpOptions = {
|
||||
maxBodyBytes?: number;
|
||||
config?: GatewayHttpResponsesConfig;
|
||||
trustedProxies?: string[];
|
||||
allowRealIpFallback?: boolean;
|
||||
rateLimiter?: AuthRateLimiter;
|
||||
};
|
||||
|
||||
@@ -343,6 +344,7 @@ export async function handleOpenResponsesHttpRequest(
|
||||
pathname: "/v1/responses",
|
||||
auth: opts.auth,
|
||||
trustedProxies: opts.trustedProxies,
|
||||
allowRealIpFallback: opts.allowRealIpFallback,
|
||||
rateLimiter: opts.rateLimiter,
|
||||
maxBodyBytes,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user