From a3a9c53225a4727bd4d20842d92e2414467d86df Mon Sep 17 00:00:00 2001 From: Hamed Sanaei Date: Thu, 3 Dec 2026 00:34:44 +0330 Subject: [PATCH] perf(clients): skip inbound flow checks when flow is empty --- internal/web/service/client_crud.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/web/service/client_crud.go b/internal/web/service/client_crud.go index 97e00b309..5fc2b831c 100644 --- a/internal/web/service/client_crud.go +++ b/internal/web/service/client_crud.go @@ -620,7 +620,7 @@ func mtprotoDomainFromSettings(settings string) string { } func clientWithInboundFlow(c model.Client, ib *model.Inbound) model.Client { - if ib.DisableFlow || !inboundCanEnableTlsFlow(string(ib.Protocol), ib.StreamSettings, ib.Settings) { + if c.Flow != "" && (ib.DisableFlow || !inboundCanEnableTlsFlow(string(ib.Protocol), ib.StreamSettings, ib.Settings)) { c.Flow = "" } return c