From 15718e40fb4e2d59868c9436d92c54542c23d71e Mon Sep 17 00:00:00 2001 From: Pedro Gonring Date: Sun, 27 Oct 2024 23:41:52 -0300 Subject: [PATCH] fix: real ip header --- gecho.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gecho.go b/gecho.go index 17b5d83..99fbd4b 100644 --- a/gecho.go +++ b/gecho.go @@ -96,7 +96,7 @@ func getOrigin(headers map[string]string, remoteAddr *string) string { origin = strings.Split(xForwardedIps, ",")[0] } - xRealIp, ok := headers["X-Real-IP"] + xRealIp, ok := headers["X-Real-Ip"] if ok { origin = xRealIp }