mirror of
https://github.com/Rayzggz/server_torii.git
synced 2025-06-19 21:51:20 +08:00
feat: log error
This commit is contained in:
@ -94,7 +94,6 @@ func getClientIP(cfg *config.MainConfig, r *http.Request) string {
|
||||
remoteAddr := r.RemoteAddr
|
||||
ipStr, _, err := net.SplitHostPort(remoteAddr)
|
||||
if err != nil {
|
||||
//TODO: log error
|
||||
clientIP = remoteAddr
|
||||
} else {
|
||||
clientIP = ipStr
|
||||
|
Reference in New Issue
Block a user