Browse Source

auto update script executed

Toby Chui 1 year ago
parent
commit
bb1b6bcd3b
1 changed files with 1 additions and 1 deletions
  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]
 			}