Add distinct IP counter to broker

This commit is contained in:
Shelikhoo 2022-05-27 17:37:23 +01:00
parent fa7d1e2bb7
commit 2541b13166
No known key found for this signature in database
GPG key ID: C4D5E79D22B25316
2 changed files with 18 additions and 0 deletions

View file

@ -106,6 +106,7 @@ func (i *IPC) ProxyPolls(arg messages.Arg, response *[]byte) error {
} else {
i.ctx.metrics.lock.Lock()
i.ctx.metrics.UpdateCountryStats(remoteIP, proxyType, natType)
i.ctx.metrics.RecordIPAddress(remoteIP)
i.ctx.metrics.lock.Unlock()
}