Skip to content

Commit

Permalink
Refactor tasks.json to enable bpf feature in rust_http_proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
arloor committed Sep 27, 2024
1 parent af6c057 commit ed53b60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"args": [
"-p",
"rust_http_proxy",
// "--features",
// "bpf",
"--features",
"bpf",
// "--features",
// "jemalloc",
// "--no-default-features",
Expand Down
1 change: 0 additions & 1 deletion rust_http_proxy/src/net_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ use socket_filter::TransmitCounter;
static SOCKET_FILTER: std::sync::LazyLock<Arc<TransmitCounter>> = std::sync::LazyLock::new(|| {
Arc::new(TransmitCounter::new(
&IGNORED_INTERFACES,
Box::leak(Box::new(std::mem::MaybeUninit::uninit())),
))
});

Expand Down

0 comments on commit ed53b60

Please sign in to comment.