From 7db330d11a46846e6acad58075ddda46f9c1fd94 Mon Sep 17 00:00:00 2001 From: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com> Date: Mon, 4 Dec 2023 16:06:42 -0600 Subject: [PATCH] Fix SM integration test rate limiting (#3512) --- test/IntegrationTestCommon/FakeRemoteIpAddressMiddleware.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/IntegrationTestCommon/FakeRemoteIpAddressMiddleware.cs b/test/IntegrationTestCommon/FakeRemoteIpAddressMiddleware.cs index 4b3e88523..69696f67c 100644 --- a/test/IntegrationTestCommon/FakeRemoteIpAddressMiddleware.cs +++ b/test/IntegrationTestCommon/FakeRemoteIpAddressMiddleware.cs @@ -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)