mirror of https://github.com/ospab/ostp.git
tun-helper: the GUI encrypts all IPC commands with ChaCha20Poly1305 and sends them as hex, but the helper was reading plain JSON — every command was silently dropped and the tunnel core was never started. Fix by: - Moving IpcCrypto + derive_key into ostp-client/src/ipc_crypto.rs as a shared module so GUI and helper always use identical crypto logic. - Rewriting tun-helper/src/main.rs to hex-decode and decrypt every incoming line before JSON-parsing, and to encrypt + hex-encode every outgoing HelperMsg before sending. - Replacing the custom log_to_file() helper with tracing::info/warn/error so all helper output goes through the standard tracing pipeline. - Adding tracing and hex to ostp-tun-helper Cargo.toml; dropping chrono (no longer needed after removing log_to_file). logging: unify output format across all OSTP binaries to match the standard tracing-subscriber style: 2026-06-21T19:11:18.643226Z INFO ostp_server: message - Enable the `time` feature in tracing-subscriber and set UTC RFC-3339 timer on both file and stderr layers in init_tracing. - Remove with_line_number(true) — line numbers are not part of the desired format and bloat the target field. - Replace println! in runner.rs with tracing::info!. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| test_udp.rs | ||