mirror of
https://github.com/gotson/komga.git
synced 2026-05-08 12:35:30 +02:00
retrieve real ip in audit logs
This commit is contained in:
parent
baf93efeb1
commit
6be194127c
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ data class RequestInfo(
|
|||
)
|
||||
|
||||
fun HttpServletRequest.extractInfo() = RequestInfo(
|
||||
ip = remoteAddr,
|
||||
ip = getHeader("X-Real-IP") ?: getHeader("X-Forwarded-For") ?: remoteAddr,
|
||||
userAgent = getHeader("User-Agent"),
|
||||
method = method,
|
||||
url = requestURL.toString(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue