Added getFragmentOutbound function to ServerConfig.kt

This commit is contained in:
Vahid Farid
2024-02-13 16:38:27 +03:30
parent 496a0ec92c
commit 6eaac2d7e9

View File

@@ -56,6 +56,10 @@ data class ServerConfig(
return fullConfig?.getProxyOutbound()
}
fun getFragmentOutbound(): V2rayConfig.OutboundBean? {
return fullConfig?.getProxyOutbound()
}
fun getAllOutboundTags(): MutableList<String> {
if (configType != EConfigType.CUSTOM) {
return mutableListOf(TAG_AGENT, TAG_DIRECT, TAG_BLOCKED)