enable store each Email Traffic

This commit is contained in:
Hossin Asaadi
2022-11-11 09:20:51 -05:00
parent dc8e00f2cf
commit 8deffb1b7c
5 changed files with 118 additions and 6 deletions

View File

@@ -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()