Closed lk29 closed 1 year ago
Do you have any information about how we could generate shortIds
?
There are lots of same questions which there isn't any response or documentation provided yet!
Hey mate @alireza0 Feel free to use this step by step process to replicate a reality connection successfully: https://github.com/XTLS/Xray-core/discussions/1702
shortIds
Required. The shortId list available to the client, which can be used to distinguish different clients. If set to an empty string, the client shortId can be empty. If non-empty, should be a multiple of 2 hexadecimal digits, with a maximum of 16 hexadecimal digits
random, ideally non-repeating value assigned per client for greater security
@lk29 @ariandcir
Thank you for your comments. Actually, I have read the documents, but this documents could not answer mass usages like what we could use in x-ui
. It is enough to use it manually in config.json
for xray-core, but I am thinking about how we could store these data in x-ui
structure and make it compatible.
Another confusion is that what we should do if admin decided to change xray-core version.
colleague, I have been thinking for several days about the legacy we inherited from HexaSoftwareTech / x-ui storing and processing in json "clients": [ { "id": "6c...", "flow": "xtls-rprx-vision", "email": "test...", "totalGB": 107374182400, "expiryTime": 1678590925635 },
I suggest changing this and store records in the database separately for each client then we can store additional fields like ray version and v2ray/xray variant
but this will require reworking the frontend & backend /inbound/addClient/ /inbound/list /inbound/delClient/.... /inbound/updateClient/0
but this will greatly simplify life in the future.
What do you think about it?
Changing in database will affect previous data and the poeple who wants to migrate to this panel or from this panel. APIs are currently changed by this way. Check this
For any change in the structure, it is better to create new panel from the scatch.
my x-ui collection already has 4 different versions I hoped to find those who want to go ahead. It seems to me that we need to change the skeleton of the old x-ui.
maybe I'll gather my strength and start my independent fork.
We thought about this fact and it is not avoidable. X-UI was not desined for some kind of usages. I should work on another projects as well.
example