修复“域名规则默认使用 domain_suffix” (#848)

This commit is contained in:
zizzdog 2025-01-18 22:18:04 +08:00 committed by GitHub
parent 5a191fdc94
commit 8590d9284a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,8 +130,7 @@ fun SingBoxOptions.Rule_DefaultOptions.makeSingBoxRule(list: List<String>, isIP:
} else if (it.startsWith("keyword:")) {
domain_keyword.plusAssign(it.removePrefix("keyword:").lowercase())
} else {
// https://github.com/SagerNet/sing-box/commit/5d41e328d4a9f7549dd27f11b4ccc43710a73664
domain.plusAssign(it.lowercase())
domain_suffix.plusAssign(it.lowercase())
}
}
ip_cidr?.removeIf { it.isNullOrBlank() }