From 2391d849624eb943cb40d78c8465987c2af5cbdd Mon Sep 17 00:00:00 2001 From: ReturnFI <151555003+ReturnFI@users.noreply.github.com> Date: Thu, 6 Nov 2025 15:49:01 +0000 Subject: [PATCH] Update Changelog --- changelog | 38 ++++++++++++++++---------------------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/changelog b/changelog index 40f9e11..2d9f9f6 100644 --- a/changelog +++ b/changelog @@ -1,31 +1,25 @@ -### πŸš€ **[2.4.3] – Password Editing, Telegram Enhancements & Stability Fixes** +### πŸš‘ **[2.4.4] – Traffic System Hotfix & Stability Improvements** *Released: 2025-11-06* -#### πŸ” **Security & UI Improvements** +#### 🐞 **Bug Fixes** -* **Client-Side Password Validation** – Prevent weak or invalid passwords directly from the browser. -* **Editable Password Field** – Users’ passwords can now be securely updated via the user modal. +* 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. -#### πŸ€– **Telegram Bot Upgrades** +#### 🧠 **Core Refactor** -* Added **inline keyboard support** for clearing user notes. -* Enhanced **user detail display**, showing notes and improved formatting for admins. +* Rebuilt `traffic.py` into an object-oriented design using a new `TrafficManager` class. +* Improved modularity and maintainability with clear separation for: -#### βš™οΈ **Backend & Server Enhancements** + * API interaction + * Database updates + * Traffic calculation + * Expired user handling -* **Database-based Online Tracking:** Online user count now directly pulled from MongoDB instead of memory. -* **Fixed traffic bug** causing incorrect offline user status in multi-node environments. +#### 🧩 **Compatibility & Reliability** -#### 🧹 **Maintenance & Dependencies** - -* Cleaned up `requirements.txt` to include only top-level dependencies. -* Dependency upgrades: - - * ⬆️ `psutil` β†’ 7.1.3 - * ⬆️ `certbot` β†’ 5.1.0 - * ⬆️ `python-dotenv` β†’ 1.2.1 - * ⬆️ `fastapi` β†’ 0.121.0 - * ⬆️ `aiohttp` β†’ 3.13.2 - * ⬆️ `idna` β†’ 3.11 - * ⬆️ `click` β†’ 8.3.0 \ No newline at end of file +* 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. \ No newline at end of file