diff --git a/web/service/xray.go b/web/service/xray.go index 259e8975..bfdc23dd 100644 --- a/web/service/xray.go +++ b/web/service/xray.go @@ -120,13 +120,13 @@ func (s *XrayService) GetXrayTraffic() ([]*xray.Traffic, error) { if !s.IsXrayRunning() { return nil, errors.New("xray is not running") } - return p.GetTraffic(false) + 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) + return p.GetClientTraffic(false) } func (s *XrayService) RestartXray(isForce bool) error {