0
0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-08-30 18:35:32 +00:00

fix: no flow value for def flow.

This commit is contained in:
jesus 2025-08-15 14:14:23 +04:00
parent 1d05e4e4f8
commit 3acfd3d90f

View File

@ -40,7 +40,9 @@ 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.NoFLow:
case vless.NoFLow:
c.Flow = ""
case "", vless.XRV:
default:
return nil, errors.New(`VLESS "settings.flow" doesn't support "` + c.Flow + `" in this version`)
}