From d92a51a75864a192a7b2a41711b8ebb668e38682 Mon Sep 17 00:00:00 2001 From: Dominick Baier Date: Tue, 7 May 2024 10:21:08 +0200 Subject: [PATCH] Update Index.cshtml.cs --- src/Pages/Diagnostics/Index.cshtml.cs | 11 ----------- 1 file changed, 11 deletions(-) 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();