mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-08-30 02:15:32 +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()
|
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 {
|
switch account.Flow {
|
||||||
case "":
|
case "":
|
||||||
account.Flow = c.Flow
|
account.Flow = c.Flow
|
||||||
|
Loading…
Reference in New Issue
Block a user