mirror of
https://github.com/alireza0/x-ui.git
synced 2026-03-14 05:23:09 +00:00
fix inbound listen
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
package model
|
package model
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"x-ui/util/json_util"
|
"x-ui/util/json_util"
|
||||||
"x-ui/xray"
|
"x-ui/xray"
|
||||||
)
|
)
|
||||||
@@ -44,7 +43,7 @@ type Inbound struct {
|
|||||||
|
|
||||||
func (i *Inbound) GenXrayInboundConfig() *xray.InboundConfig {
|
func (i *Inbound) GenXrayInboundConfig() *xray.InboundConfig {
|
||||||
return &xray.InboundConfig{
|
return &xray.InboundConfig{
|
||||||
Listen: json_util.RawMessage(fmt.Sprintf("\"%s\"", i.Listen)),
|
Listen: json_util.RawMessage(i.Listen),
|
||||||
Port: i.Port,
|
Port: i.Port,
|
||||||
Protocol: string(i.Protocol),
|
Protocol: string(i.Protocol),
|
||||||
Settings: json_util.RawMessage(i.Settings),
|
Settings: json_util.RawMessage(i.Settings),
|
||||||
|
|||||||
Reference in New Issue
Block a user