Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'xray/api.go')
-rw-r--r--xray/api.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/xray/api.go b/xray/api.go
index f39361f2..56406df0 100644
--- a/xray/api.go
+++ b/xray/api.go
@@ -63,10 +63,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}