revert back to normal restart inbounds

This commit is contained in:
Alireza Ahmadi
2025-07-18 19:47:29 +02:00
parent fe4fa9b9e6
commit c2d33d2a1e
10 changed files with 4 additions and 760 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ func (s *ConfigService) Save(obj string, act string, data json.RawMessage, initU
inboundIds, err := s.ClientService.Save(tx, act, data, hostname)
if err == nil && len(inboundIds) > 0 {
objs = append(objs, "inbounds")
err = s.InboundService.UpdateUsers(tx, inboundIds)
err = s.InboundService.RestartInbounds(tx, inboundIds)
if err != nil {
return nil, common.NewErrorf("failed to update users for inbounds: %v", err)
}