25 lines
916 B
Plaintext
25 lines
916 B
Plaintext
### 🚑 **[2.4.4] – Traffic System Hotfix & Stability Improvements**
|
||
|
||
*Released: 2025-11-06*
|
||
|
||
#### 🐞 **Bug Fixes**
|
||
|
||
* Fixed incorrect user online status caused by outdated `online_count` logic.
|
||
* Synchronized database state with live Hysteria2 API data for accurate user tracking.
|
||
* Prevented false offline/online display in the web panel and Telegram bot.
|
||
|
||
#### 🧠 **Core Refactor**
|
||
|
||
* Rebuilt `traffic.py` into an object-oriented design using a new `TrafficManager` class.
|
||
* Improved modularity and maintainability with clear separation for:
|
||
|
||
* API interaction
|
||
* Database updates
|
||
* Traffic calculation
|
||
* Expired user handling
|
||
|
||
#### 🧩 **Compatibility & Reliability**
|
||
|
||
* Reintroduced stable public methods (`traffic_status()` & `kick_expired_users()`) for CLI and API use.
|
||
* Replaced scattered print statements with structured logging.
|
||
* Added constants for better maintainability and consistency. |