.HIDE. shit

This commit is contained in:
Howl 2016-07-06 19:36:46 +02:00
parent 15559d0be2
commit ff1d2fa1c3

View File

@ -10,7 +10,7 @@ import (
func PeppyMethod(a func(c *gin.Context, db *sql.DB)) gin.HandlerFunc {
return func(c *gin.Context) {
rateLimiter()
perUserRequestLimiter(0, c.Request.Header.Get("X-Real-IP"))
perUserRequestLimiter(0, c.ClientIP())
// I have no idea how, but I manged to accidentally string the first 4
// letters of the alphabet into a single function call.