Add tags for ip blocklisted metric

This commit is contained in:
9seconds
2022-03-21 13:42:13 +03:00
parent aa7e488a3a
commit 534d5b755e
7 changed files with 68 additions and 16 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ func (p *Proxy) Serve(listener net.Listener) error {
if !p.allowlist.Contains(ipAddr) {
conn.Close()
logger.Info("ip was rejected by allowlist")
p.eventStream.Send(p.ctx, NewEventIPBlocklisted(ipAddr))
p.eventStream.Send(p.ctx, NewEventIPAllowlisted(ipAddr))
continue
}