mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
Clear map of seen proxy IP addresses
We were not previously clearing the map we keep of seen IP addresses, which resulted in our unique proxy IP counts representing churn rather than unique IP counts per day, except during broker process restarts.
This commit is contained in:
parent
43a35655ad
commit
c8b0b31601
1 changed files with 2 additions and 0 deletions
|
@ -275,6 +275,8 @@ func (m *Metrics) printMetrics() {
|
|||
m.logger.Println("snowflake-ips-nat-restricted", m.loadAndZero("proxy-nat-restricted"))
|
||||
m.logger.Println("snowflake-ips-nat-unrestricted", m.loadAndZero("proxy-nat-unrestricted"))
|
||||
m.logger.Println("snowflake-ips-nat-unknown", m.loadAndZero("proxy-nat-unknown"))
|
||||
|
||||
m.ips.Clear()
|
||||
}
|
||||
|
||||
// binCount rounds count up to the next multiple of 8. Returns 0 on integer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue