fix a crash when adding empty custom config
This commit is contained in:
@@ -447,7 +447,7 @@ data class V2rayConfig(
|
|||||||
var poolSize: Int = 10000) // roughly 10 times smaller than total ip pool
|
var poolSize: Int = 10000) // roughly 10 times smaller than total ip pool
|
||||||
|
|
||||||
fun getProxyOutbound(): OutboundBean? {
|
fun getProxyOutbound(): OutboundBean? {
|
||||||
outbounds.forEach { outbound ->
|
outbounds?.forEach { outbound ->
|
||||||
EConfigType.values().forEach {
|
EConfigType.values().forEach {
|
||||||
if (outbound.protocol.equals(it.name, true)) {
|
if (outbound.protocol.equals(it.name, true)) {
|
||||||
return outbound
|
return outbound
|
||||||
|
|||||||
Reference in New Issue
Block a user