From 5800b6c8747b37dfba45b11b14d2e3f8ebcaa717 Mon Sep 17 00:00:00 2001 From: Crimson Date: Tue, 12 May 2026 12:34:37 +0500 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=BF=D0=B0=D1=80=D1=81=D0=B5=D1=80=20tc-=D1=85?= =?UTF-8?q?=D0=B8=D1=82=D0=BE=D0=B2=20=D0=B4=D0=BB=D1=8F=20=D1=81=D1=82?= =?UTF-8?q?=D1=80=D0=BE=D0=BA=20match+success?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- traffic_core/src/status.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/traffic_core/src/status.rs b/traffic_core/src/status.rs index cf8b788..5a787ef 100644 --- a/traffic_core/src/status.rs +++ b/traffic_core/src/status.rs @@ -552,9 +552,12 @@ fn parse_tc_filter_hits(raw: &str) -> BTreeMap { let mut current_ip: Option = None; for line in raw.lines() { let t = line.trim(); + if t.contains("match ") { current_ip = extract_tc_match_ip(t); - } else if t.starts_with("Sent ") { + } + + if t.starts_with("Sent ") { if let Some(ip) = current_ip.clone() { let hits = parse_sent_packets(t).unwrap_or(0); out.insert(ip, hits);