From 681f645082ef326748369cd56b078eb6e598604b Mon Sep 17 00:00:00 2001 From: Vladimir Buyanov Date: Mon, 27 Nov 2023 17:53:37 +0200 Subject: [PATCH] Lint --- ip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ip.go b/ip.go index f44a82448..155cf4991 100644 --- a/ip.go +++ b/ip.go @@ -226,7 +226,7 @@ func ExtractIPFromRealIPHeader(options ...TrustOption) IPExtractor { checker := newIPChecker(options) return func(req *http.Request) string { realIP := req.Header.Get(HeaderXRealIP) - remoteIP := extractIP(req) + remoteIP := extractIP(req) if checker.trust(remoteIP) && realIP != "" { realIP = strings.TrimPrefix(realIP, "[") realIP = strings.TrimSuffix(realIP, "]")