From 9c26ea80ccb278614e460a0ab6993f5160914652 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sun, 18 Dec 2022 16:04:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BD=E5=AE=B6/=E5=9C=B0=E5=8C=BA=E5=B0=81?= =?UTF-8?q?=E7=A6=81=E3=80=81=E7=9C=81=E4=BB=BD=E5=B0=81=E7=A6=81=E6=97=B6?= =?UTF-8?q?=E6=94=AF=E6=8C=81IP=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_request.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/nodes/http_request.go b/internal/nodes/http_request.go index 945e682..35049b8 100644 --- a/internal/nodes/http_request.go +++ b/internal/nodes/http_request.go @@ -1133,6 +1133,8 @@ func (this *HTTPRequest) requestRemoteAddr(supportVar bool) string { // 获取请求的客户端地址列表 func (this *HTTPRequest) requestRemoteAddrs() (result []string) { + result = append(result, this.requestRemoteAddr(true)) + // X-Forwarded-For var forwardedFor = this.RawReq.Header.Get("X-Forwarded-For") if len(forwardedFor) > 0 {