diff --git a/app/src/main/java/moe/matsuri/nb4a/SingBoxOptionsUtil.kt b/app/src/main/java/moe/matsuri/nb4a/SingBoxOptionsUtil.kt index d6a5b207..f24fb1ff 100644 --- a/app/src/main/java/moe/matsuri/nb4a/SingBoxOptionsUtil.kt +++ b/app/src/main/java/moe/matsuri/nb4a/SingBoxOptionsUtil.kt @@ -74,7 +74,7 @@ fun SingBoxOptions.DNSRule_DefaultOptions.checkEmpty(): Boolean { } fun SingBoxOptions.Rule_DefaultOptions.generateRuleSet(ruleSet: MutableList) { - rule_set.forEach { + rule_set?.forEach { when { it.startsWith("geoip") -> { val geoipPath = GeoipUtils.generateRuleSet(country = it.removePrefix("geoip:"))