change: domain rule use domain_suffix

This commit is contained in:
armv9 2024-12-11 19:59:41 +09:00
parent e8beeec94c
commit 62444de566
2 changed files with 2 additions and 3 deletions

View File

@ -225,7 +225,7 @@ object ProfileManager {
if (country == "cn") createRule(
RuleEntity(
name = app.getString(R.string.route_play_store, displayCountry),
domains = "domain:googleapis.cn",
domains = "googleapis.cn",
), false
)
createRule(

View File

@ -47,8 +47,7 @@ fun SingBoxOptions.DNSRule_DefaultOptions.makeSingBoxRule(list: List<String>) {
} 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())
}
}
rule_set?.removeIf { it.isNullOrBlank() }