https://github.com/2dust/v2rayNG/pull/2839
This commit is contained in:
2dust committed 2024-02-14 18:52:05 +08:00
1 parent c243fadacf
commit 3cd95fbfdb
6 files changed
+201 -108

No files matched your search

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