Skip to content

Commit 681f645

Browse files
committed
Lint
1 parent 47ac004 commit 681f645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ip.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func ExtractIPFromRealIPHeader(options ...TrustOption) IPExtractor {
226226
checker := newIPChecker(options)
227227
return func(req *http.Request) string {
228228
realIP := req.Header.Get(HeaderXRealIP)
229-
remoteIP := extractIP(req)
229+
remoteIP := extractIP(req)
230230
if checker.trust(remoteIP) && realIP != "" {
231231
realIP = strings.TrimPrefix(realIP, "[")
232232
realIP = strings.TrimSuffix(realIP, "]")

0 commit comments

Comments
 (0)