|
@@ -475,11 +475,11 @@ func processHTTP(request *data.Request, appData []byte) error {
|
|
request.XForwardedFor = req.Header["X-Forwarded-For"][0]
|
|
request.XForwardedFor = req.Header["X-Forwarded-For"][0]
|
|
}
|
|
}
|
|
// CloudFlare: override X-Forwarded for since it is tainted by cloudflare
|
|
// CloudFlare: override X-Forwarded for since it is tainted by cloudflare
|
|
- if _, ok := req.Header["True-Client-IP"]; ok {
|
|
|
|
- request.XForwardedFor = req.Header["True-Client-IP"][0]
|
|
|
|
|
|
+ if _, ok := req.Header["True-Client-Ip"]; ok {
|
|
|
|
+ request.XForwardedFor = req.Header["True-Client-Ip"][0]
|
|
}
|
|
}
|
|
- if _, ok := req.Header["X-Real-IP"]; ok {
|
|
|
|
- request.XRealIP = req.Header["X-Real-IP"][0]
|
|
|
|
|
|
+ if _, ok := req.Header["X-Real-Ip"]; ok {
|
|
|
|
+ request.XRealIP = req.Header["X-Real-Ip"][0]
|
|
}
|
|
}
|
|
if _, ok := req.Header["X-Requested-With"]; ok {
|
|
if _, ok := req.Header["X-Requested-With"]; ok {
|
|
request.XRequestedWith = req.Header["X-Requested-With"][0]
|
|
request.XRequestedWith = req.Header["X-Requested-With"][0]
|