Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Commit

Permalink
fix traffic store
Browse files Browse the repository at this point in the history
  • Loading branch information
hossinasaadi committed Nov 13, 2022
1 parent f440bc6 commit 7adae2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/service/xray.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7adae2a

Please sign in to comment.