perf(clients): skip inbound flow checks when flow is empty

This commit is contained in:
Hamed Sanaei
2026-12-03 00:34:44 +03:30
parent a508e438a2
commit a3a9c53225
+1 -1
View File
@@ -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