diff --git a/src/Pages/Diagnostics/Index.cshtml.cs b/src/Pages/Diagnostics/Index.cshtml.cs index 3b1d10b..5d4ccca 100644 --- a/src/Pages/Diagnostics/Index.cshtml.cs +++ b/src/Pages/Diagnostics/Index.cshtml.cs @@ -16,17 +16,6 @@ public class Index : PageModel public async Task OnGet() { - var localAddresses = new List { "127.0.0.1", "::1" }; - if(HttpContext.Connection.LocalIpAddress != null) - { - localAddresses.Add(HttpContext.Connection.LocalIpAddress.ToString()); - } - - if (!localAddresses.Contains(HttpContext.Connection.RemoteIpAddress?.ToString())) - { - return NotFound(); - } - View = new ViewModel(await HttpContext.AuthenticateAsync()); return Page();