CF-Connecting-IP

This commit is contained in:
Acid
2026-05-21 18:30:42 -04:00
parent 888581c807
commit fe3b33a58d
+4 -1
View File
@@ -47,7 +47,10 @@ func handleRoot(w http.ResponseWriter, r *http.Request) {
return
}
host := r.Header.Get("X-Real-IP")
host := r.Header.Get("CF-Connecting-IP")
if host == "" {
host = r.Header.Get("X-Real-IP")
}
if host == "" {
host = r.Header.Get("X-Forwarded-For")
}