CF-Connecting-IP
This commit is contained in:
@@ -47,7 +47,10 @@ func handleRoot(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
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 == "" {
|
if host == "" {
|
||||||
host = r.Header.Get("X-Forwarded-For")
|
host = r.Header.Get("X-Forwarded-For")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user