From 6eaac2d7e9ef309ee127e12e8c19cd6611d41a9b Mon Sep 17 00:00:00 2001 From: Vahid Farid Date: Tue, 13 Feb 2024 16:38:27 +0330 Subject: [PATCH] Added getFragmentOutbound function to ServerConfig.kt --- V2rayNG/app/src/main/kotlin/com/v2ray/ang/dto/ServerConfig.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/dto/ServerConfig.kt b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/dto/ServerConfig.kt index b4cd3e16..6a60654d 100644 --- a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/dto/ServerConfig.kt +++ b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/dto/ServerConfig.kt @@ -56,6 +56,10 @@ data class ServerConfig( return fullConfig?.getProxyOutbound() } + fun getFragmentOutbound(): V2rayConfig.OutboundBean? { + return fullConfig?.getProxyOutbound() + } + fun getAllOutboundTags(): MutableList { if (configType != EConfigType.CUSTOM) { return mutableListOf(TAG_AGENT, TAG_DIRECT, TAG_BLOCKED)