Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cl-bvl committed Nov 27, 2023
1 parent 47ac004 commit 681f645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, "]")
Expand Down

0 comments on commit 681f645

Please sign in to comment.