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 2c8968b5dc
commit 08a7f08d6e
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 ""
}