v1.0.4
π Release v1.0.4
This release includes significant new features, improvements, and critical bug fixes across authentication, orders, subscriptions, proxy handling, and application management.
β¨ New Features
-
Rule Groups
- Added
typeanddefaultfields to rule group requests and model. - Implemented default rule group logic during creation and updates.
- Added
-
Proxy Management
- Enhanced proxy group handling, sorting, and configuration options.
- Added Surge adapter support and improved subscription URL handling.
- Added Loon configuration template support.
- Refactored Surfboard proxy handling with improved templates.
-
Subscription & Traffic
- Implemented traffic reset logic for subscription cycles.
- Enhanced subscription reset logic using
expire_timefor monthly/yearly checks. - Added
V2SubscribeHandlerfor advanced subscription management. - Updated subscription route to use V2 handler.
- Added output format configuration for subscription adapters.
-
Authentication & User Management
- Improved email/mobile config unmarshalling with defaults.
- Enhanced OAuth login flow with better registration handling.
- Added ordering for user lists and authentication methods.
-
Order & Marketing
- Enhanced order processing logic with improved error handling.
- Added batch email task management API.
-
Application Management
- Implemented CRUD operations for subscription applications.
- Added structured download link handling,
schemefield, and client preview templates. - Added default application data initialization.
-
Miscellaneous
- Added endpoint to retrieve application version info.
- Added logs volume in
developenvironment.
π Improvements & Refactoring
- Replaced hardcoded proxy group names with constants for maintainability.
- Streamlined user cache management and clearing logic.
- Unified and improved logging prefixes for better debugging.
- Added Go-standard documentation comments across key files.
- Enhanced middleware with domain length checks and refined User-Agent handling.
π Bug Fixes
- Database: Corrected
SingBoxname in initialization script. - Purchase & Renewal: Fixed gift amount deduction and discount default value issues.
- Order: Fixed critical bugs in order processing and gift amount handling.
- User Statistics: Filled missing data in revenue and user statistics.
- Traffic Reset: Fixed daily and scheduled reset logic for subscriptions.
- Scheduler: Adjusted daily reset task to run at
00:30. - Handler: Added browser interception for specific User-Agents.
- Trojan: Removed unused parameters and cleaned up logging.
- Docker: Added build argument for version in Docker image builds.
Full changelog: Compare changes