From e8a8096457c7207c2ee95f28e97331961f2900ac Mon Sep 17 00:00:00 2001 From: Samatar Date: Thu, 11 Jun 2026 02:41:28 +0100 Subject: [PATCH] fix Linux local mode missing traffic from non-main threads --- mitmproxy-linux-ebpf/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitmproxy-linux-ebpf/src/main.rs b/mitmproxy-linux-ebpf/src/main.rs index 2efe7598..db80efdd 100644 --- a/mitmproxy-linux-ebpf/src/main.rs +++ b/mitmproxy-linux-ebpf/src/main.rs @@ -28,7 +28,7 @@ pub fn cgroup_sock_create(ctx: SockContext) -> i32 { pub fn should_intercept(ctx: &SockContext) -> bool { let command = ctx.command().ok(); - let pid = ctx.pid(); + let pid = ctx.tgid(); let mut intercept = matches!(INTERCEPT_CONF.get(0), Some(Action::Exclude(_))); for i in 0..INTERCEPT_CONF_LEN {