mirror of
https://github.com/alireza0/x-ui.git
synced 2026-03-14 05:23:09 +00:00
enable store each Email Traffic
This commit is contained in:
@@ -84,6 +84,12 @@ func (s *XrayService) GetXrayTraffic() ([]*xray.Traffic, error) {
|
||||
}
|
||||
return p.GetTraffic(true)
|
||||
}
|
||||
func (s *XrayService) GetXrayClientTraffic() ([]*xray.ClientTraffic, error) {
|
||||
if !s.IsXrayRunning() {
|
||||
return nil, errors.New("xray is not running")
|
||||
}
|
||||
return p.GetClientTraffic(true)
|
||||
}
|
||||
|
||||
func (s *XrayService) RestartXray(isForce bool) error {
|
||||
lock.Lock()
|
||||
|
||||
Reference in New Issue
Block a user