From 21c99567b497f3617ed1a7e11298bdc0d6f5353d Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Wed, 8 Oct 2025 18:05:59 +0800 Subject: [PATCH] :bug: Fix wrong method to configure rate limiting --- DysonNetwork.Gateway/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DysonNetwork.Gateway/Program.cs b/DysonNetwork.Gateway/Program.cs index cf1c0e1..a4b8469 100644 --- a/DysonNetwork.Gateway/Program.cs +++ b/DysonNetwork.Gateway/Program.cs @@ -24,7 +24,7 @@ builder.Services.AddCors(options => builder.Services.AddRateLimiter(options => { - options.AddFixedWindowLimiter("fixed", limiterOptions => + options.AddPolicy("fixed", context => { var ip = context.Connection.RemoteIpAddress?.ToString() ?? "unknown";