mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-04 06:12:10 +03:00
Singleton lifecycle around the decrypt-capable transparent listener (#4200): builds the dynamic CA (#4173), gates on native-addon availability, holds the single running handle, counts interceptions, and exposes start / stop / status for a local-only route (4b) to drive. The OS trust-store mechanism is deliberately not baked in: installCa / uninstallCa are injected by the caller (the route / VPS e2e provides the real installer, which needs its own trust-store slot so it does not clobber the static MITM cert). The manager therefore never mutates the trust store itself and stays unit-testable without root or the native addon. - startCaptureMode: rejects when unavailable or already running; builds the CA; wires the injected installCa/uninstallCa through to the decrypt listener. - stopCaptureMode: stops the handle (close + uninstall CA + revert), idempotent. - getCaptureStatus: running / available / startedAt / interceptCount / onPort. Route + real trust-store installer + Traffic Inspector UI tab + VPS e2e-with-decrypt + addon prebuilds follow (4b+).