From 69bb43a50f7a7d9db58c36a33555b479c675e15d Mon Sep 17 00:00:00 2001 From: yuanchao Date: Tue, 3 Dec 2024 18:51:37 +0800 Subject: [PATCH] fix: bpf does not take effect in analyzer mode --- agent/src/dispatcher/base_dispatcher.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/agent/src/dispatcher/base_dispatcher.rs b/agent/src/dispatcher/base_dispatcher.rs index 91cc5fb38f5..8b64eeaa9ad 100644 --- a/agent/src/dispatcher/base_dispatcher.rs +++ b/agent/src/dispatcher/base_dispatcher.rs @@ -515,10 +515,6 @@ impl BaseDispatcher { } let tap_interfaces = self.tap_interfaces.lock().unwrap(); - if tap_interfaces.len() == 0 { - return; - } - let bpf_options = self.bpf_options.lock().unwrap(); if let Err(e) = self.engine.set_bpf( bpf_options.get_bpf_instructions(