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:
parent
a4ec03de85
commit
adfa20c715
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user