1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-24 12:35:25 +01:00

Fix SM integration test rate limiting (#3512)

This commit is contained in:
Thomas Avery 2023-12-04 16:06:42 -06:00 committed by GitHub
parent f424cc09f7
commit 7db330d11a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,5 @@
using System.Net;
using Bit.IntegrationTestCommon.Factories;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
@ -13,7 +14,7 @@ public class FakeRemoteIpAddressMiddleware
public FakeRemoteIpAddressMiddleware(RequestDelegate next, IPAddress fakeIpAddress = null)
{
_next = next;
_fakeIpAddress = fakeIpAddress ?? IPAddress.Parse("127.0.0.1");
_fakeIpAddress = fakeIpAddress ?? IPAddress.Parse(FactoryConstants.WhitelistedIp);
}
public async Task Invoke(HttpContext httpContext)