mirror of
https://github.com/alireza0/x-ui.git
synced 2026-08-28 04:15:05 +00:00
fix inbound listen
This commit is contained in:
parent
e5788c6d8e
commit
f6eb413597
1 changed files with 1 additions and 2 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue