Syntax bug
This commit is contained in:
parent
e5be6f6bd4
commit
c0fed3c406
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ public class SecurityEventMiddleware(RequestDelegate next)
|
|||
}
|
||||
catch (KavitaUnauthenticatedUserException ex)
|
||||
{
|
||||
var ipAddress = context.Request.Headers["X-Forwarded-For"].FirstOrDefault() ?? context.Connection.RemoteIpAddress?.ToString());
|
||||
var ipAddress = context.Request.Headers["X-Forwarded-For"].FirstOrDefault() ?? context.Connection.RemoteIpAddress?.ToString();
|
||||
var requestMethod = context.Request.Method;
|
||||
var requestPath = context.Request.Path;
|
||||
var userAgent = context.Request.Headers.UserAgent;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue