0
0
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:
jesus 2025-08-15 11:51:35 +04:00
parent 76e0d06fbd
commit 1d05e4e4f8
2 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -6,6 +6,6 @@
package vless
const (
XRV = "xtls-rprx-vision"
NO_FLOW = "none"
XRV = "xtls-rprx-vision"
NoFLow = "none"
)