Skip to content

Commit b6492cf

Browse files
authored
Update real_ip.go
changed realIP to xRealIP on line 75
1 parent 7cc3b67 commit b6492cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

real_ip.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func (r *RealIPOverWriter) ServeHTTP(rw http.ResponseWriter, req *http.Request)
7272
}
7373

7474
// If it is not possible to determine the real IP, the connecting IP is used as a fallback.
75-
if realIP == "" {
75+
if xRealIP == "" {
7676
realIP = req.RemoteAddr;
7777
}
7878

0 commit comments

Comments
 (0)