What's New in v1.0.2
Persistent Traffic Counters (#13)
- Traffic stats (TRAFFIC IN / TRAFFIC OUT) now survive container restarts
- Cumulative traffic saved to disk every 60 seconds, even without Telegram bot enabled
- Final traffic snapshot flushed before every stop/restart — no data loss on clean shutdown
- All displays (CLI, TUI, live monitor, Telegram bot) show correct cumulative totals
TUI Performance
- Batch stats loading — single metrics fetch + single file read replaces per-user subprocess spawning (~256 forks → ~5 for 32 users)
- Replaced
echo | awk field extraction with bash read -r builtins throughout
printf '%(%Y-%m-%d)T' builtin for date formatting (zero forks)
Reliability
- Atomic file writes with flock — prevents race conditions between daemon and CLI
- Fixed in/out direction mapping — consistent
from_client=in, to_client=out across all functions
- Lock released on all early return paths (no lock leaks)
- Integer validation on all values read from traffic files
What's New Since v1.0.0
v1.0.1 — Batch Secret Management (#12)
secret add-batch <l1> <l2> ... — add multiple secrets with a single restart
secret remove-batch <l1> <l2> ... — remove multiple secrets with a single restart
--no-restart flag for secret add/remove/add-batch/remove-batch
- TUI interactive menu options [6] and [7] for batch operations
v1.0.0 — Engine v3.3.14
- Event-Driven ME — reduced CPU on idle/low-traffic servers
- CPU/RAM hot-path optimization
- ME writer selection, DC-to-client tuning, ME/DC reroute
- Adaptive floor planner, PROXY real IP in logs
Upgrade
curl -fsSL https://raw.githubusercontent.com/SamNet-dev/MTProxyMax/main/mtproxymax.sh -o /usr/local/bin/mtproxymax && chmod +x /usr/local/bin/mtproxymax