We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef274c0 commit d92a51aCopy full SHA for d92a51a
src/Pages/Diagnostics/Index.cshtml.cs
@@ -16,17 +16,6 @@ public class Index : PageModel
16
17
public async Task<IActionResult> OnGet()
18
{
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
30
View = new ViewModel(await HttpContext.AuthenticateAsync());
31
32
return Page();
0 commit comments