|
@@ -136,7 +136,7 @@ func (c *Collector) RecordRequest(ri RequestInfo) {
|
|
|
|
|
|
//Filter out CF forwarded requests
|
|
|
if strings.Contains(ri.IpAddr, ",") {
|
|
|
- ips := strings.Split(ri.IpAddr, ",")
|
|
|
+ ips := strings.Split(strings.TrimSpace(ri.IpAddr), ",")
|
|
|
if len(ips) >= 1 {
|
|
|
ri.IpAddr = ips[0]
|
|
|
}
|