Gozargah / Marzban

Unified GUI Censorship Resistant Solution Powered by Xray
https://t.me/gozargah_marzban
GNU Affero General Public License v3.0
3.79k stars 518 forks source link

Incorrect connection status in the panel if the user was created via the API #1432

Closed aerostovtsev closed 1 week ago

aerostovtsev commented 1 week ago

The green user connection indicator is not displayed correctly if the user was created through the API. What could this be about?

Incorrect connection indicator:

  1. I create a new user via POST request /api/user
  2. I copy the subscription/configuration
  3. I add the subscription/configuration to the application on the device
  4. I'm connecting
  5. The user indicator in Marzban does not turn green and traffic statistics are not displayed, but why does the indicator turn green for the user who was last added to marzban
  6. After disconnecting the connection to the applications on the device, the green indicator turns off in the Marzban panel for the user who was added last.

The correct connection indicator:

  1. I create manually in the admin panel (GUI) of the user
  2. I copy the subscription/configuration
  3. I add the subscription/configuration to the application on the device
  4. I'm connecting
  5. The user indicator in Marzban turns green and traffic statistics are displayed
aerostovtsev commented 1 week ago

The error was that through the API in the "vless" object: { "id" - the same one was assigned. It was necessary not to specify in the request that it was generated independently.