Explorar o código

auto update script executed

Toby Chui hai 1 ano
pai
achega
bb1b6bcd3b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      mod/statistic/statistic.go

+ 1 - 1
mod/statistic/statistic.go

@@ -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]
 			}