From 7adae2a8c34c472ef494bade7c7d73a7fcacc903 Mon Sep 17 00:00:00 2001 From: Hossin Asaadi Date: Sun, 13 Nov 2022 07:54:37 -0500 Subject: [PATCH] fix traffic store --- web/service/xray.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {