test again
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 9s

This commit is contained in:
2026-03-07 16:40:27 +01:00
parent 191e3e0da4
commit f53bfe2d64

View File

@@ -22,8 +22,19 @@ from pyroute2 import IPRoute
try:
from bcc import BPF # type: ignore
except Exception as exc: # pragma: no cover - depends on host runtime
print(f"Failed to import python3-bpfcc: {exc}", file=sys.stderr, flush=True)
raise
dist_packages = [
Path("/usr/lib/python3/dist-packages"),
Path("/usr/lib64/python3/dist-packages"),
]
for candidate in dist_packages:
candidate_str = str(candidate)
if candidate.is_dir() and candidate_str not in sys.path:
sys.path.append(candidate_str)
try:
from bcc import BPF # type: ignore
except Exception:
print(f"Failed to import python3-bpfcc: {exc}", file=sys.stderr, flush=True)
raise
from src.utilities.packet_mark import packet_id_from_mark, verdict_from_mark