From adfa20c715a45c9e8617f1923d5755cdb5ef580c Mon Sep 17 00:00:00 2001 From: jesus Date: Fri, 15 Aug 2025 10:05:03 +0400 Subject: [PATCH] fix: add check for settings flow value. --- infra/conf/vless.go | 6 ++++++ 1 file changed, 6 insertions(+) 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