diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-07-08 06:05:08 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-07-08 06:05:08 +0530 |
commit | d08ae9402429bfca69d72c7a7d99975aa356539f (patch) | |
tree | bb4d4d4ddc28030ab419eb4ce3377c3d0426af9e /cmd | |
parent | 3da7837e2e51763b00b2f7af80973b2d5d61933d (diff) |
bpf/filter: init
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/main.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/main.go b/cmd/main.go index 5c58d44..dc456ce 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -13,6 +13,7 @@ import ( "sinanmohd.com/redq/db" "sinanmohd.com/redq/dns" "sinanmohd.com/redq/bpf/usage" + "sinanmohd.com/redq/bpf/filter" ) func main() { @@ -37,6 +38,10 @@ func main() { if err != nil { os.Exit(0) } + f, err := filter.New(iface, queries, ctx) + if err != nil { + os.Exit(0) + } u, err := usage.New(iface) if err != nil { os.Exit(0) @@ -47,6 +52,7 @@ func main() { go func() { <-sigs usage.Close(u, queries, ctx) + filter.Close(f) api.Close(a) os.Exit(0) }() |