mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-04 16:34:52 +03:00
perf(clients): skip inbound flow checks when flow is empty
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user