0
0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-08-29 01:45:31 +00:00

fix: add check for settings flow value.

This commit is contained in:
jesus 2025-08-15 10:05:03 +04:00
parent a4ec03de85
commit adfa20c715

View File

@ -55,6 +55,12 @@ func (c *VLessInboundConfig) Build() (proto.Message, error) {
}
account.Id = u.String()
switch c.Flow {
case "", vless.XRV:
default:
return nil, errors.New(`VLESS clients: "settings.flow" doesn't support "` + account.Flow + `" in this version`)
}
switch account.Flow {
case "":
account.Flow = c.Flow