.HIDE. shit

This commit is contained in:
Howl committed 2016-07-06 19:36:46 +02:00
1 parent 15559d0be2
commit ff1d2fa1c3
1 file changed
+1 -1
+1 -1
View File
@@ -10,7 +10,7 @@ import (
func PeppyMethod(a func(c *gin.Context, db *sql.DB)) gin.HandlerFunc { func PeppyMethod(a func(c *gin.Context, db *sql.DB)) gin.HandlerFunc {
return func(c *gin.Context) { return func(c *gin.Context) {
rateLimiter() 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 // I have no idea how, but I manged to accidentally string the first 4
// letters of the alphabet into a single function call. // letters of the alphabet into a single function call.