fix inbound listen

This commit is contained in:
sprov
2021-06-06 23:52:03 +08:00
parent e5788c6d8e
commit f6eb413597

View File

@@ -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),