cookie count per ip logging

This commit is contained in:
Dan Ballard 2020-09-27 19:34:24 -07:00
parent 649d6d3858
commit a38c82fd21
1 changed files with 3 additions and 0 deletions

View File

@ -86,6 +86,9 @@ func filter(res http.ResponseWriter, req *http.Request, listenPort, proxyPort in
}
ipsMap := ips.(Ip2LastSeen)
if len(ipsMap) > 1 {
log.Info("More than 1 IP for cookie: %v %v\n", cookie, ipsMap)
}
var mostRecent string = ""
for ip, lastSeen := range ipsMap {