mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-11-29 02:42:51 +00:00
Update inbound.go
This commit is contained in:
parent
1ea3303d1c
commit
0334ad4bf6
1 changed files with 2 additions and 0 deletions
|
|
@ -1953,6 +1953,7 @@ func (s *InboundService) GetClientTrafficByEmail(email string) (traffic *xray.Cl
|
||||||
if t != nil && client != nil {
|
if t != nil && client != nil {
|
||||||
t.Enable = client.Enable
|
t.Enable = client.Enable
|
||||||
t.SubId = client.SubID
|
t.SubId = client.SubID
|
||||||
|
t.UUID = client.ID
|
||||||
return t, nil
|
return t, nil
|
||||||
}
|
}
|
||||||
return nil, nil
|
return nil, nil
|
||||||
|
|
@ -1994,6 +1995,7 @@ func (s *InboundService) GetClientTrafficByID(id string) ([]xray.ClientTraffic,
|
||||||
if ct, client, e := s.GetClientByEmail(traffics[i].Email); e == nil && ct != nil && client != nil {
|
if ct, client, e := s.GetClientByEmail(traffics[i].Email); e == nil && ct != nil && client != nil {
|
||||||
traffics[i].Enable = client.Enable
|
traffics[i].Enable = client.Enable
|
||||||
traffics[i].SubId = client.SubID
|
traffics[i].SubId = client.SubID
|
||||||
|
traffics[i].UUID = client.ID
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return traffics, err
|
return traffics, err
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue