Skip to content

Conversation

@klirii
Copy link

@klirii klirii commented Nov 18, 2025

Summary 📝

A new function from the Xray Core API has been added - GetStatsOnlineIpList, which allows you to get all IP addresses that are currently connected to specific client. It accepts the client's email and returns a dictionary where the keys are the IP addresses of users currently connected to the client, and the values are the last time the list was cleared of IPs that are no longer active (disconnected). More details here
P.S: I apologize in advance for the commit name. I first committed the changes and only then saw the convention you use. I also couldn't figure out the documentation because it's empty and there are no examples, so I just left the docstring for the function. I hope that if you need to make the necessary changes to meet the project criteria, it won't be too difficult :)

Details

Describe more what you did on changes.

  1. xray_api/app/stats/command_pb2.py and xray_api/app/stats/command_pb2_grpc.py were regenerated from the last version of Xray Core proto files
  2. New function was added in api_services/stats (get_stats_online_ip_list.py)
  3. Class for this function was registered in api_services/stats/init.py

Checks

  • Closed #798
  • Tested Changes
  • Stakeholder Approval

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant