mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-27 16:24:20 +08:00
修复部分CDN获取不到客户端IP问题
This commit is contained in:
@@ -204,5 +204,6 @@ func GetClientIp(r *ghttp.Request) string {
|
||||
if gstr.Contains(ip, ", ") {
|
||||
ip = gstr.TrimStr(ip, ", ", -1)
|
||||
}
|
||||
|
||||
return ip
|
||||
}
|
||||
|
Reference in New Issue
Block a user