platform: Prepare connections list

This commit is contained in:
世界 2024-06-11 21:16:33 +08:00
parent 7ef8b71fa6
commit d0e2c7e29c
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
18 changed files with 651 additions and 254 deletions

View file

@ -36,7 +36,7 @@ func (s *CommandServer) readStatus() StatusMessage {
trafficManager := clashServer.(*clashapi.Server).TrafficManager()
message.Uplink, message.Downlink = trafficManager.Now()
message.UplinkTotal, message.DownlinkTotal = trafficManager.Total()
message.ConnectionsIn = int32(trafficManager.Connections())
message.ConnectionsIn = int32(trafficManager.ConnectionsLen())
}
}