diff --git a/web/service/inbound.go b/web/service/inbound.go index 8ab11a88..283f10fb 100644 --- a/web/service/inbound.go +++ b/web/service/inbound.go @@ -319,6 +319,13 @@ func (s *InboundService) AddInbound(inbound *model.Inbound) (*model.Inbound, boo s.xrayApi.Close() } + body, err := json.Marshal(inbound) + if err != nil { + return inbound, false, err + } + + s.syncWithSlaves("POST", "/panel/api/inbounds/add", bytes.NewReader(body)) + return inbound, needRestart, err }