This commit is contained in:
Дмитрий Саенко 2025-10-22 12:36:55 +03:00
parent cccc9914a1
commit 773e770cee

View file

@ -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
}