🚑 [2.4.4] – Traffic System Hotfix & Stability Improvements
Released: 2025-11-06
🐞 Bug Fixes
- Fixed incorrect user online status caused by outdated
online_countlogic. - 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.pyinto an object-oriented design using a newTrafficManagerclass. -
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.