Skip to content

Commit d92a51a

Browse files
Update Index.cshtml.cs
1 parent ef274c0 commit d92a51a

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/Pages/Diagnostics/Index.cshtml.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,6 @@ public class Index : PageModel
1616

1717
public async Task<IActionResult> OnGet()
1818
{
19-
var localAddresses = new List<string?> { "127.0.0.1", "::1" };
20-
if(HttpContext.Connection.LocalIpAddress != null)
21-
{
22-
localAddresses.Add(HttpContext.Connection.LocalIpAddress.ToString());
23-
}
24-
25-
if (!localAddresses.Contains(HttpContext.Connection.RemoteIpAddress?.ToString()))
26-
{
27-
return NotFound();
28-
}
29-
3019
View = new ViewModel(await HttpContext.AuthenticateAsync());
3120

3221
return Page();

0 commit comments

Comments
 (0)