Merge pull request #2122 from justlovediaodiao/master

fix a crash when adding custom config
This commit is contained in:
2dust authored and GitHub committed 2023-03-24 09:15:01 +08:00
commit 3aeda7de81
1 file changed
+1 -1
@@ -447,7 +447,7 @@ data class V2rayConfig(
var poolSize: Int = 10000) // roughly 10 times smaller than total ip pool
fun getProxyOutbound(): OutboundBean? {
outbounds.forEach { outbound ->
outbounds?.forEach { outbound ->
EConfigType.values().forEach {
if (outbound.protocol.equals(it.name, true)) {
return outbound