minor changes

This commit is contained in:
MHSanaei
2026-01-03 05:56:35 +01:00
parent 945fefde12
commit 5bcf6a8aeb
4 changed files with 137 additions and 68 deletions

View File

@@ -621,6 +621,13 @@ class Outbound extends CommonClass {
return false;
}
// Vision seed applies only when vision flow is selected
canEnableVisionSeed() {
if (!this.canEnableTlsFlow()) return false;
const flow = this.settings?.flow;
return flow === TLS_FLOW_CONTROL.VISION || flow === TLS_FLOW_CONTROL.VISION_UDP443;
}
canEnableReality() {
if (![Protocols.VLESS, Protocols.Trojan].includes(this.protocol)) return false;
return ["tcp", "http", "grpc", "xhttp"].includes(this.stream.network);