Skip to content

Commit

Permalink
fix: is not true instead of is false
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Sep 20, 2022
1 parent 7943671 commit 4a4e6b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GZCTF/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -306,15 +306,15 @@ await context.Posts.AddAsync(new()

app.UseMiddleware<ProxyMiddleware>();

if (!IsTesting && app.Configuration.GetValue<bool>("DisableRateLimit") is false)
if (!IsTesting && app.Configuration.GetValue<bool>("DisableRateLimit") is not true)
{
app.UseIpRateLimiting();
}

app.UseStaticFiles();

app.UseResponseCompression();

app.UseStaticFiles();

app.UseRouting();

app.UseAuthentication();
Expand Down

0 comments on commit 4a4e6b1

Please sign in to comment.