diff --git a/business/auth2/auth_ctx.go b/business/auth2/auth_ctx.go index f87dc6b73..2543f2c97 100644 --- a/business/auth2/auth_ctx.go +++ b/business/auth2/auth_ctx.go @@ -52,6 +52,8 @@ func (ctx *Context) GetRealRemoteIP() (ip string) { } if ip == "" { ip = strings.Split(r.RemoteAddr, ":")[0] + } else { + ip = strings.Split(ip, ",")[0] } } return ip