From f6eb4135972e1d6b0bb4493ae3b4eed43dbecfb9 Mon Sep 17 00:00:00 2001 From: sprov <47310637+sprov065@users.noreply.github.com> Date: Sun, 6 Jun 2021 23:52:03 +0800 Subject: [PATCH] fix inbound listen --- database/model/model.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/database/model/model.go b/database/model/model.go index 965d2c9594..1c325cfecf 100644 --- a/database/model/model.go +++ b/database/model/model.go @@ -1,7 +1,6 @@ package model import ( - "fmt" "x-ui/util/json_util" "x-ui/xray" ) @@ -44,7 +43,7 @@ type Inbound struct { func (i *Inbound) GenXrayInboundConfig() *xray.InboundConfig { return &xray.InboundConfig{ - Listen: json_util.RawMessage(fmt.Sprintf("\"%s\"", i.Listen)), + Listen: json_util.RawMessage(i.Listen), Port: i.Port, Protocol: string(i.Protocol), Settings: json_util.RawMessage(i.Settings),