Skip to content

Commit 2b18dc4

Browse files
committed
v1.0.2: Persistent traffic counters, TUI performance, direction fixes
- Traffic stats persist across container restarts (#13) - Cumulative traffic saved every 60s even without Telegram bot - Pre-stop flush ensures no data loss on clean shutdown - Batch stats loading: single metrics fetch replaces N*8 forks per user - flock locking prevents race between daemon and CLI writes - Fixed in/out direction mapping (from_client=in) across all functions - Batch add/remove --no-restart flag support
1 parent 1b364c1 commit 2b18dc4

File tree

2 files changed

+367
-66
lines changed

2 files changed

+367
-66
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
One script. Full control. Zero hassle.
66
</p>
77
<p align="center">
8-
<img src="https://img.shields.io/badge/version-1.0.1-brightgreen" alt="Version"/>
8+
<img src="https://img.shields.io/badge/version-1.0.2-brightgreen" alt="Version"/>
99
<img src="https://img.shields.io/badge/license-MIT-blue" alt="License"/>
1010
<img src="https://img.shields.io/badge/engine-Rust_(telemt_3.x)-orange" alt="Engine"/>
1111
<img src="https://img.shields.io/badge/platform-Linux-lightgrey" alt="Platform"/>
@@ -500,11 +500,20 @@ mtproxymax telegram remove # Remove bot completely
500500

501501
## 📋 Changelog
502502

503+
### v1.0.2 — Persistent Traffic & TUI Performance
504+
505+
- **Persistent Traffic Counters** — Traffic stats (TRAFFIC IN / TRAFFIC OUT) now survive container restarts ([#13](https://github.com/SamNet-dev/MTProxyMax/issues/13))
506+
- **Always-On Traffic Tracking** — Cumulative traffic saved to disk every 60s, even without Telegram bot enabled
507+
- **Pre-Stop Traffic Flush** — Final traffic snapshot saved before every stop/restart, no data loss on clean shutdown
508+
- **TUI Batch Stats Loading** — Single metrics fetch + single file read replaces per-user subprocess spawning
509+
- **Atomic File Writes with Locking** — Traffic files use `flock` to prevent race conditions between daemon and CLI
510+
- **Fixed In/Out Direction Mapping** — Consistent `from_client`=in, `to_client`=out across all functions
511+
503512
### v1.0.1 — Batch Secret Management
504513

505-
- **Batch Add**`secret add-batch <l1> <l2> ...` adds multiple secrets with a single restart
514+
- **Batch Add**`secret add-batch <l1> <l2> ...` adds multiple secrets with a single restart ([#12](https://github.com/SamNet-dev/MTProxyMax/issues/12))
506515
- **Batch Remove**`secret remove-batch <l1> <l2> ...` removes multiple secrets with a single restart
507-
- **`--no-restart` flag**`secret add/remove --no-restart` for scripting and automation
516+
- **`--no-restart` flag**`secret add/remove/add-batch/remove-batch --no-restart` for scripting and automation
508517
- **TUI options** — Interactive menu options [6] and [7] for batch operations
509518

510519
### v1.0.0 — Engine v3.3.14

0 commit comments

Comments
 (0)