Skip to content

Commit

Permalink
fix core restart on traffic reset of disabled client
Browse files Browse the repository at this point in the history
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
  • Loading branch information
MHSanaei and alireza0 committed Oct 15, 2024
1 parent 5f8c8f4 commit 1c2b609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/service/inbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -1574,7 +1574,7 @@ func (s *InboundService) ResetClientTraffic(id int, clientEmail string) (bool, e
return false, err
}
for _, client := range clients {
if client.Email == clientEmail {
if client.Email == clientEmail && client.Enable {
s.xrayApi.Init(p.GetAPIPort())
cipher := ""
if string(inbound.Protocol) == "shadowsocks" {
Expand Down

0 comments on commit 1c2b609

Please sign in to comment.