From 105a7e6f8bfd63f6f4868b8fbaf28d2c619f6ff3 Mon Sep 17 00:00:00 2001 From: Dream95 Date: Sat, 28 Feb 2026 11:22:18 +0000 Subject: [PATCH] fix: fix filter pid error --- cmd/proxy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/proxy.c b/cmd/proxy.c index 8a0d7cc..bb43614 100644 --- a/cmd/proxy.c +++ b/cmd/proxy.c @@ -79,7 +79,8 @@ match_process(struct Config *conf) } if(conf->filter_by_pid){ - if (bpf_map_lookup_elem(&filter_pid_map, &conf->proxy_pid)) return true; + __u32 current_pid = bpf_get_current_pid_tgid() >> 32; + if (bpf_map_lookup_elem(&filter_pid_map, ¤t_pid)) return true; } return false;