From 5f5cd668b50a7038f452b0d7ce377dcd5268d628 Mon Sep 17 00:00:00 2001 From: arloor Date: Tue, 22 Oct 2024 16:06:28 +0800 Subject: [PATCH] Refactor reverse proxy configuration to use static BPF and cgroup_traffic --- .github/workflows/rust.yml | 2 +- rust_http_proxy/Cargo.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8fb66be..1f8e270 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -76,7 +76,7 @@ jobs: extra_deps: cmake zlib1g-dev libelf-dev pkg-config clang autoconf autopoint flex bison gawk make after_install: | ls -lh /usr/lib/x86_64-linux-gnu/libelf.a - args: -p rust_http_proxy --no-default-features --features aws_lc_rs,bpf_vendored + args: -p rust_http_proxy --no-default-features --features aws_lc_rs,bpf_static apt_mirror: mirrors.mit.edu rust_flags: -C target-feature=+crt-static -L /usr/lib/x86_64-linux-gnu debug: false diff --git a/rust_http_proxy/Cargo.toml b/rust_http_proxy/Cargo.toml index 224df5e..6da84d0 100644 --- a/rust_http_proxy/Cargo.toml +++ b/rust_http_proxy/Cargo.toml @@ -60,7 +60,7 @@ pnet = { version = "0.35", optional = true } default = ["ring"] jemalloc = ["jemallocator"] bpf = ["socket_filter", "cgroup_traffic"] -bpf_vendored = ["bpf", "socket_filter/vendored"] -bpf_static = ["bpf", "socket_filter/static", "libbpf-sys/vendored-libbpf"] +bpf_vendored = ["bpf", "socket_filter/vendored","cgroup_traffic/vendored"] +bpf_static = ["bpf", "socket_filter/static","cgroup_traffic/static", "libbpf-sys/vendored-libbpf"] aws_lc_rs = ["tokio-rustls/aws-lc-rs", "hyper-rustls/aws-lc-rs"] ring = ["tokio-rustls/ring", "hyper-rustls/ring"]