Skip to content

Commit

Permalink
fix: re-add the metric setters for "is on banlist"
Browse files Browse the repository at this point in the history
  • Loading branch information
0xB10C committed Oct 31, 2023
1 parent 3207e2e commit e75c0ff
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions metrics/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ fn main() {
if util::is_tor_exit_node(&ip) {
metrics::CONN_INBOUND_TOR_EXIT.inc();
}
if util::is_on_gmax_banlist(&ip) {
metrics::CONN_INBOUND_BANLIST_GMAX
.with_label_values(&[&ip])
.inc();
}
if util::is_on_monero_banlist(&ip) {
metrics::CONN_INBOUND_BANLIST_MONERO
.with_label_values(&[&ip])
.inc();
}
metrics::CONN_INBOUND_ADDRESS
.with_label_values(&[&ip])
.inc();
Expand Down

0 comments on commit e75c0ff

Please sign in to comment.