diff --git a/infra/conf/vless.go b/infra/conf/vless.go index 04169f7d..0912fd2c 100644 --- a/infra/conf/vless.go +++ b/infra/conf/vless.go @@ -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