mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-08-29 18:05: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.Clients = make([]*protocol.User, len(c.Clients))
|
||||
switch c.Flow {
|
||||
case "", vless.XRV, vless.NO_FLOW:
|
||||
case "", vless.XRV, vless.NoFLow:
|
||||
default:
|
||||
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 {
|
||||
case "":
|
||||
account.Flow = c.Flow
|
||||
case vless.NO_FLOW:
|
||||
case vless.NoFLow:
|
||||
account.Flow = ""
|
||||
case vless.XRV:
|
||||
default:
|
||||
|
@ -6,6 +6,6 @@
|
||||
package vless
|
||||
|
||||
const (
|
||||
XRV = "xtls-rprx-vision"
|
||||
NO_FLOW = "none"
|
||||
XRV = "xtls-rprx-vision"
|
||||
NoFLow = "none"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user