Skip to content

Commit

Permalink
fix inbound listen
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxilu committed Jun 6, 2021
1 parent e5788c6 commit f6eb413
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions database/model/model.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package model

import (
"fmt"
"x-ui/util/json_util"
"x-ui/xray"
)
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit f6eb413

Please sign in to comment.