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