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()