use c.ClientIP() rather than manually accessing c.Request.RemoteAddr
This commit is contained in:
parent
45d0de234b
commit
15559d0be2
|
@ -51,7 +51,7 @@ func initialCaretaker(c *gin.Context, f func(md common.MethodData) common.CodeMe
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
perUserRequestLimiter(md.ID(), c.Request.Header.Get("X-Real-IP"))
|
perUserRequestLimiter(md.ID(), c.ClientIP())
|
||||||
|
|
||||||
missingPrivileges := 0
|
missingPrivileges := 0
|
||||||
for _, privilege := range privilegesNeeded {
|
for _, privilege := range privilegesNeeded {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user