shadowsocks / shadowsocks-rust

A Rust port of shadowsocks
https://shadowsocks.org/
MIT License
8.7k stars 1.18k forks source link

give seperated traffic stat for "multiple users with Extensible Identity Header" #1778

Open march1993 opened 5 days ago

march1993 commented 5 days ago

It seems the ping command only gives per-server traffic. Would it be possible to give a more detail stat for multiple users with Extensible Identity Header?

zonyitoo commented 5 days ago

It may require quite a lot of work. Any one who is interested could submit a PR for this.

march1993 commented 5 days ago

It may require quite a lot of work. Any one who is interested could submit a PR for this.

Would you suggest display the detail traffic in the existing ping command or create a new command? If in existing ping command, what kind of key-naming style would be acceptable? Maybe the following example?

{"server1" : 1000, "server1/user1": 300, "server2/user2": 700}

database64128 commented 4 days ago

https://github.com/shadowsocks/shadowsocks-rust/issues/1626#issuecomment-2310011435

zonyitoo commented 4 days ago

Well, yes. You could make ssmanager support Shadowsocks Server Management API v1.