AF_PACKET terminology cleanup
All checks were successful
Build and Deploy MITM Webserver / traffic_target (push) Successful in 0s
Build and Deploy MITM Webserver / build (push) Successful in 10s

This commit is contained in:
2026-04-12 17:41:22 +02:00
parent cb4c6ff564
commit 9ee47284e0
11 changed files with 69 additions and 45 deletions

View File

@@ -82,11 +82,11 @@ async def on_startup() -> None:
async def shutdown_event() -> None:
"""Stop network resources and release shared runtime objects."""
try:
from src.network_sniffer import stop_afpacket_sniffer
from src.network_sniffer import stop_capture_session
stop_afpacket_sniffer()
stop_capture_session()
except Exception:
logging.exception("Failed to stop sniffer sessions during shutdown")
logging.exception("Failed to stop capture sessions during shutdown")
try:
network_api.shutdown_network_api()