From 9c06412cebee1c5616e7ee9c534a79f44fe848e0 Mon Sep 17 00:00:00 2001 From: Vahid Farid Date: Wed, 14 Feb 2024 11:20:25 +0330 Subject: [PATCH] Update V2rayConfig.kt --- .../app/src/main/kotlin/com/v2ray/ang/dto/V2rayConfig.kt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/dto/V2rayConfig.kt b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/dto/V2rayConfig.kt index 15374923..19a9e792 100644 --- a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/dto/V2rayConfig.kt +++ b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/dto/V2rayConfig.kt @@ -475,6 +475,15 @@ data class V2rayConfig( return null } + fun getFragmentOutbound(): OutboundBean? { + outbounds.forEach { outbound -> + if (outbound.protocol == "freedom" && outbound.tag == "fragment") { + return outbound + } + } + return null + } + fun toPrettyPrinting(): String { return GsonBuilder() .setPrettyPrinting()