Skip to content

v1.1.0

Choose a tag to compare

@github-actions github-actions released this 13 Feb 19:09
· 30 commits to main since this release
8ce31fc

New Features

Enhanced Username Handling

  • Added automatic padding of usernames that are shorter than 6 characters
  • Usernames are now padded with underscore characters (_) to meet the minimum length requirement
  • Added logging to track username modifications for better visibility

Improved Protocol Fields Management

  • Made protocol-related fields optional in API requests:
    • TrojanPassword
    • VlessUUID
    • ShortUUID
    • SsPassword (Shadowsocks password)
  • Empty protocol fields are now omitted from API requests, allowing Remnawave to generate default values
  • Added smart field handling to only include populated protocol fields

Technical Changes

  • Updated CreateUserRequest structure to use pointer types for optional fields
  • Added omitempty JSON tags for optional fields
  • Introduced new helper functions:
    • ensureValidUsername() for username validation and padding
    • strPtr() for safe string pointer conversion
  • Improved logging to show when usernames are padded

Improvements

  • Better compatibility with Remnawave's minimum username length requirement
  • More flexible handling of missing protocol configurations
  • Reduced unnecessary data in API requests
  • Enhanced logging for better debugging and monitoring

Migration Notes

This release maintains backward compatibility with existing configurations. No changes to your existing migration scripts are required.

Full Changelog: v1.0.3...v1.1.0