Skip to content

Commit 6aba135

Browse files
committed
fix client api error handling #781
1 parent 97d1694 commit 6aba135

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

service/config.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ func (s *ConfigService) Save(obj string, act string, data json.RawMessage, initU
142142

143143
switch obj {
144144
case "clients":
145-
inboundIds, err := s.ClientService.Save(tx, act, data, hostname)
145+
var inboundIds []uint
146+
inboundIds, err = s.ClientService.Save(tx, act, data, hostname)
146147
if err == nil && len(inboundIds) > 0 {
147148
objs = append(objs, "inbounds")
148149
err = s.InboundService.RestartInbounds(tx, inboundIds)

0 commit comments

Comments
 (0)