We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7cfb5de + 3f383ad commit 436d046Copy full SHA for 436d046
1 file changed
internal/utils/utils.go
@@ -85,10 +85,7 @@ func EnvSubst(input string) string {
85
}
86
87
func ReadUserIP(r *http.Request) string {
88
- IPAddress := r.Header.Get("X-Real-Ip")
89
- if IPAddress == "" {
90
- IPAddress = r.Header.Get("X-Forwarded-For")
91
- }
+ IPAddress := r.Header.Get("X-Forwarded-For")
92
if IPAddress == "" {
93
host, _, _ := net.SplitHostPort(r.RemoteAddr)
94
IPAddress = host
0 commit comments