amnezia-vpn / amnezia-client

Amnezia VPN Client (Desktop+Mobile)
https://amnezia.org
GNU General Public License v3.0
3.93k stars 265 forks source link

Bug: Can't see and manage users of the XRay protocol #902

Closed KiGamji closed 3 weeks ago

KiGamji commented 1 month ago

Describe the bug In the share VPN menu, the "Users" list is empty. It does not show any clients, including the admin sessions, while it works fine for other protocols, such as OpenVPN over Cloak and AmneziaWG

Screenshots XRay (the users list is empty!): image

OpenVPN over Cloak: image

Desktop:

Server:

mizzuri commented 1 month ago

I'm not certain, but isn't it because XRay config is the same for everyone?

KiGamji commented 1 month ago

@mizzuri huh? why can I create and share XRay configs then?

mizzuri commented 1 month ago

What do you mean?

It's my understanding that you create the config once, and share the same config with others. (Even though you create a new XRay config with a new name, it's still the same.)

I could be totally wrong, though.

KiGamji commented 1 month ago

@mizzuri it's not the same. create a few configs, and see that the QR Codes/VPN:// strings are different.

mizzuri commented 1 month ago

@mizzuri it's not the same. create a few configs, and see that the QR Codes/VPN:// strings are different.

I just did. They're all the same. At least for me. I created configs using both the Amnezia app format and the XRay native format, and they are identical within their respective formats.

mityasun commented 1 month ago

I confirm that everything is the same on Android version 4.6.0.3 and on Windows 4.6.0.3:

KiGamji commented 1 month ago

I just tried it, and it seems like the configs are identical indeed, if shared from the same admin session. Although they are different, when sharing configs from different admin sessions. 🤷‍♂️

Crashermage commented 1 month ago

Guys, how can I find the config file for Xray in the Linux file system? Does it even exist?

mizzuri commented 1 month ago

Guys, how can I find the config file for Xray in the Linux file system? Does it even exist?

I'm not certain if you can perform that action directly within the file system. Even if it's possible, the item will most likely be encrypted and located within one of the containers.

rubbersoul935 commented 1 month ago

The same issue on Ubuntu 22.04, Debian 12, Debian 11 with Xray. Can't see the users I've shared the Xray key with. The Xray shared key is the same every time I try to generate a new one. Amnezia 4.6.0.3 MacOs / 4.6.0.4 iOS

mizzuri commented 1 month ago

The same issue on Ubuntu 22.04, Debian 12, Debian 11 with Xray. Can't see the users I've shared the Xray key with. The Xray shared key is the same every time I try to generate a new one. Amnezia 4.6.0.3 MacOs / 4.6.0.4 iOS

I don't think it's an issue. I think it is by design.

KiGamji commented 1 month ago

if that would be the case, why would the strings be different on different admin sessions though?

Mel0ne commented 1 month ago

I confirm, Xray users manage list is empty (on Android and Windows latest release clients).

mizzuri commented 1 month ago

if that would be the case, why would the strings be different on different admin sessions though?

I believe the app's GUI and workflows should be updated to provide a clearer experience for users.

Nethius commented 1 month ago

there is no user management for Xray in the client yet, this functionality is in WIP

Nethius commented 3 weeks ago

Xray user management will be in this issue https://github.com/amnezia-vpn/amnezia-client/issues/960