fix: kill stale tap proxy on port before starting new debug

This commit is contained in:
admin 2026-08-08 07:32:05 +00:00
parent d955bbff0c
commit 348bf39517

View file

@ -404,6 +404,9 @@ def start_debug():
tap_script = f"{BASE}/app/tap-proxy.py"
# Kill any stale tap proxy on this port
run(f"kill -9 $(ss -tlnp 'sport = :{port}' | grep -oP 'pid=\\K[0-9]+') 2>/dev/null", timeout=5)
# Stop container, start tap
print(f"\nStopping wallarm-{n['name']}...")
run(f"docker stop wallarm-{n['name']} 2>/dev/null", timeout=10)