diff --git a/rest/httpx/util.go b/rest/httpx/util.go index 7257092b4..f83bce689 100644 --- a/rest/httpx/util.go +++ b/rest/httpx/util.go @@ -2,7 +2,7 @@ package httpx import "net/http" -const xForwardFor = "X-Forward-For" +const xForwardFor = "X-Forwarded-For" // GetRemoteAddr returns the peer address, supports X-Forward-For. func GetRemoteAddr(r *http.Request) string {