From 2087ac1e89c2ccdfba30e2e830e83da61054919a Mon Sep 17 00:00:00 2001 From: hao Date: Fri, 26 Feb 2021 16:17:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3http=E8=BD=AC=E5=8F=91?= =?UTF-8?q?=E5=A4=B4=E5=AD=97=E6=AE=B5=E5=80=BC=E9=94=99=E8=AF=AF=20(#521)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rest/httpx/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {