mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-19 22:50:05 +08:00
fix: NPE on generateRuleSet
This commit is contained in:
parent
b34c0124da
commit
ed5b75e16c
@ -74,7 +74,7 @@ fun SingBoxOptions.DNSRule_DefaultOptions.checkEmpty(): Boolean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun SingBoxOptions.Rule_DefaultOptions.generateRuleSet(ruleSet: MutableList<RuleSet>) {
|
fun SingBoxOptions.Rule_DefaultOptions.generateRuleSet(ruleSet: MutableList<RuleSet>) {
|
||||||
rule_set.forEach {
|
rule_set?.forEach {
|
||||||
when {
|
when {
|
||||||
it.startsWith("geoip") -> {
|
it.startsWith("geoip") -> {
|
||||||
val geoipPath = GeoipUtils.generateRuleSet(country = it.removePrefix("geoip:"))
|
val geoipPath = GeoipUtils.generateRuleSet(country = it.removePrefix("geoip:"))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user