mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-08-30 10:25:31 +00:00
refactor: change var name.
This commit is contained in:
parent
76e0d06fbd
commit
1d05e4e4f8
@ -40,7 +40,7 @@ func (c *VLessInboundConfig) Build() (proto.Message, error) {
|
|||||||
config := new(inbound.Config)
|
config := new(inbound.Config)
|
||||||
config.Clients = make([]*protocol.User, len(c.Clients))
|
config.Clients = make([]*protocol.User, len(c.Clients))
|
||||||
switch c.Flow {
|
switch c.Flow {
|
||||||
case "", vless.XRV, vless.NO_FLOW:
|
case "", vless.XRV, vless.NoFLow:
|
||||||
default:
|
default:
|
||||||
return nil, errors.New(`VLESS "settings.flow" doesn't support "` + c.Flow + `" in this version`)
|
return nil, errors.New(`VLESS "settings.flow" doesn't support "` + c.Flow + `" in this version`)
|
||||||
}
|
}
|
||||||
@ -63,7 +63,7 @@ func (c *VLessInboundConfig) Build() (proto.Message, error) {
|
|||||||
switch account.Flow {
|
switch account.Flow {
|
||||||
case "":
|
case "":
|
||||||
account.Flow = c.Flow
|
account.Flow = c.Flow
|
||||||
case vless.NO_FLOW:
|
case vless.NoFLow:
|
||||||
account.Flow = ""
|
account.Flow = ""
|
||||||
case vless.XRV:
|
case vless.XRV:
|
||||||
default:
|
default:
|
||||||
|
@ -7,5 +7,5 @@ package vless
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
XRV = "xtls-rprx-vision"
|
XRV = "xtls-rprx-vision"
|
||||||
NO_FLOW = "none"
|
NoFLow = "none"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user