fix: rule_set must be not null

This commit is contained in:
purofle 2024-02-17 18:03:26 +08:00
parent 9d2cdabd58
commit 2f358dd943

View File

@ -535,7 +535,7 @@ fun buildConfig(
makeSingBoxRule(rule.ip.listByLineOrComma(), true) makeSingBoxRule(rule.ip.listByLineOrComma(), true)
} }
generateRuleSet(ruleSets) if (rule_set != null) generateRuleSet(ruleSets)
if (rule.port.isNotBlank()) { if (rule.port.isNotBlank()) {
port = mutableListOf<Int>() port = mutableListOf<Int>()