fix logs after api changes #443

This commit is contained in:
Alireza Ahmadi
2023-07-23 11:51:27 +02:00
parent d2e50d0493
commit 3be40f8595
2 changed files with 37 additions and 17 deletions

View File

@@ -61,10 +61,12 @@ func (x *XrayAPI) AddInbound(inbound []byte) error {
err := json.Unmarshal(inbound, conf)
if err != nil {
logger.Debug("Failed to unmarshal inbound:", err)
return err
}
config, err := conf.Build()
if err != nil {
logger.Debug("Failed to build inbound Detur:", err)
return err
}
inboundConfig := command.AddInboundRequest{Inbound: config}