httpd: switch back to chi Recoverer now that the required patch is merged

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2022-01-04 09:48:16 +01:00
parent df86955f28
commit ad483b7581
6 changed files with 10 additions and 32 deletions

View File

@@ -498,7 +498,7 @@ func GetRealIP(r *http.Request) string {
}
ip = strings.TrimSpace(xff[:i])
}
if net.ParseIP(ip) == nil {
if ip == "" || net.ParseIP(ip) == nil {
return ""
}