[PR #972] [MERGED] feature/xray user management #2194

Closed
opened 2026-10-13 21:19:33 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amnezia-client/pull/972
Author: @CyAn84
Created: 8/13/2024
Status: ✅ Merged
Merged: 12/10/2024
Merged by: @Nethius

Base: dev ← Head: feature/xray-user-management


📝 Commits (10+)

  • 3d7a46d add xray client id to the clients table
  • 76a439d Implement client management functionality for Xray
  • 9ecdcc7 Merge branch 'dev' into feature/xray-user-management
  • 08bbf88 Fix creation of Xray client config
  • 1077f00 Add input data validation
  • c907818 Add xray native config export
  • 83967d7 Fix revoking client when clear profile
  • 5674a27 Fix connection error for non-root server users
  • d6e5853 Merge branch 'dev' into feature/xray-user-management
  • 7a63ef7 Fix revoking clients with non-root server users

📊 Changes

7 files changed (+485 additions, -36 deletions)

View changed files

📝 client/configurators/xray_configurator.cpp (+139 -8)
📝 client/configurators/xray_configurator.h (+4 -0)
📝 client/ui/controllers/exportController.cpp (+4 -5)
📝 client/ui/controllers/exportController.h (+1 -1)
📝 client/ui/models/clientManagementModel.cpp (+330 -21)
📝 client/ui/models/clientManagementModel.h (+6 -0)
📝 client/ui/qml/Pages2/PageShare.qml (+1 -1)

📄 Description

This PR adds XRay client id and user id and saves them in clients table

  • for append client:
  1. add id generation when creating a connection config
  2. add the user id to the server config
  3. restart xray on the server
  4. append client info to clients table
  • for revoke client
  1. remove the user id from the server config
  2. restart xray on the server
  3. remove client info from clients table

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/amnezia-vpn/amnezia-client/pull/972 **Author:** [@CyAn84](https://github.com/CyAn84) **Created:** 8/13/2024 **Status:** ✅ Merged **Merged:** 12/10/2024 **Merged by:** [@Nethius](https://github.com/Nethius) **Base:** `dev` ← **Head:** `feature/xray-user-management` --- ### 📝 Commits (10+) - [`3d7a46d`](https://github.com/amnezia-vpn/amnezia-client/commit/3d7a46d058b1b4af9876e29ea24fb0fce2a7288c) add xray client id to the clients table - [`76a439d`](https://github.com/amnezia-vpn/amnezia-client/commit/76a439d16d19a449a66772ccf0a8ea1d0e8043ae) Implement client management functionality for Xray - [`9ecdcc7`](https://github.com/amnezia-vpn/amnezia-client/commit/9ecdcc7e0a3a371cd8775295dbd78b4e585e6684) Merge branch 'dev' into feature/xray-user-management - [`08bbf88`](https://github.com/amnezia-vpn/amnezia-client/commit/08bbf8818e462bde852a3099471f1085c50588fc) Fix creation of Xray client config - [`1077f00`](https://github.com/amnezia-vpn/amnezia-client/commit/1077f009aa051cdbd9986bfda2e12803793c9fc9) Add input data validation - [`c907818`](https://github.com/amnezia-vpn/amnezia-client/commit/c90781831159d9be294d7f62456893c985dd94f7) Add xray native config export - [`83967d7`](https://github.com/amnezia-vpn/amnezia-client/commit/83967d7a886031781ed17a3c049d79ff6e2b6578) Fix revoking client when clear profile - [`5674a27`](https://github.com/amnezia-vpn/amnezia-client/commit/5674a275459d517e2cb414ab92a1736fc489ad86) Fix connection error for non-root server users - [`d6e5853`](https://github.com/amnezia-vpn/amnezia-client/commit/d6e5853b0306cb21cc26833436ceba428da92c57) Merge branch 'dev' into feature/xray-user-management - [`7a63ef7`](https://github.com/amnezia-vpn/amnezia-client/commit/7a63ef79f4eb67c01bf830cbf74da85e0857a6d4) Fix revoking clients with non-root server users ### 📊 Changes **7 files changed** (+485 additions, -36 deletions) <details> <summary>View changed files</summary> 📝 `client/configurators/xray_configurator.cpp` (+139 -8) 📝 `client/configurators/xray_configurator.h` (+4 -0) 📝 `client/ui/controllers/exportController.cpp` (+4 -5) 📝 `client/ui/controllers/exportController.h` (+1 -1) 📝 `client/ui/models/clientManagementModel.cpp` (+330 -21) 📝 `client/ui/models/clientManagementModel.h` (+6 -0) 📝 `client/ui/qml/Pages2/PageShare.qml` (+1 -1) </details> ### 📄 Description # This PR adds XRay client id and user id and saves them in clients table - for append client: 1. add id generation when creating a connection config 2. add the user id to the server config 3. restart xray on the server 4. append client info to clients table - for revoke client 1. remove the user id from the server config 2. restart xray on the server 3. remove client info from clients table --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-13 21:19:33 +00:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#2194
No description provided.