diff --git a/app/src/main/java/io/nekohasekai/sagernet/fmt/ConfigBuilder.kt b/app/src/main/java/io/nekohasekai/sagernet/fmt/ConfigBuilder.kt index c589054b..d709eff8 100644 --- a/app/src/main/java/io/nekohasekai/sagernet/fmt/ConfigBuilder.kt +++ b/app/src/main/java/io/nekohasekai/sagernet/fmt/ConfigBuilder.kt @@ -535,7 +535,7 @@ fun buildConfig( makeSingBoxRule(rule.ip.listByLineOrComma(), true) } - generateRuleSet(ruleSets) + if (rule_set != null) generateRuleSet(ruleSets) if (rule.port.isNotBlank()) { port = mutableListOf()