From 7153327b13adedadf1707176c5d5593cce09f748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E5=B8=85?= <133814250@qq.com> Date: Thu, 9 Feb 2023 14:52:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86CDN?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E4=B8=8D=E5=88=B0=E5=AE=A2=E6=88=B7=E7=AB=AF?= =?UTF-8?q?IP=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/internal/library/location/location.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/internal/library/location/location.go b/server/internal/library/location/location.go index 7b9633f..31cdbf8 100644 --- a/server/internal/library/location/location.go +++ b/server/internal/library/location/location.go @@ -204,5 +204,6 @@ func GetClientIp(r *ghttp.Request) string { if gstr.Contains(ip, ", ") { ip = gstr.TrimStr(ip, ", ", -1) } + return ip }