mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-11-29 10:52:54 +00:00
asd
This commit is contained in:
parent
cccc9914a1
commit
773e770cee
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue