mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 22:54:01 +03:00
Add tags for ip blocklisted metric
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user