Skip to content

Commit f01cf7f

Browse files
committed
Disable mux when using xhttp
1 parent 7a852f7 commit f01cf7f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

V2rayNG/app/src/main/java/com/v2ray/ang/handler/V2rayConfigManager.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import com.v2ray.ang.AppConfig.WIREGUARD_LOCAL_ADDRESS_V4
3434
import com.v2ray.ang.AppConfig.WIREGUARD_LOCAL_ADDRESS_V6
3535
import com.v2ray.ang.dto.ConfigResult
3636
import com.v2ray.ang.dto.EConfigType
37+
import com.v2ray.ang.dto.NetworkType
3738
import com.v2ray.ang.dto.ProfileItem
3839
import com.v2ray.ang.dto.RulesetItem
3940
import com.v2ray.ang.dto.V2rayConfig
@@ -426,6 +427,8 @@ object V2rayConfigManager {
426427
&& outbound.settings?.vnext?.first()?.users?.first()?.flow?.isNotEmpty() == true
427428
) {
428429
muxEnabled = false
430+
} else if (outbound.streamSettings?.network == NetworkType.XHTTP.type) {
431+
muxEnabled = false
429432
}
430433
if (muxEnabled == true) {
431434
outbound.mux?.enabled = true

0 commit comments

Comments
 (0)