- fk
This commit is contained in:
@@ -52,6 +52,8 @@ func (ctx *Context) GetRealRemoteIP() (ip string) {
|
|||||||
}
|
}
|
||||||
if ip == "" {
|
if ip == "" {
|
||||||
ip = strings.Split(r.RemoteAddr, ":")[0]
|
ip = strings.Split(r.RemoteAddr, ":")[0]
|
||||||
|
} else {
|
||||||
|
ip = strings.Split(ip, ",")[0]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ip
|
return ip
|
||||||
|
|||||||
Reference in New Issue
Block a user