mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-19 06:30:05 +08:00
change: domain rule use domain_suffix
This commit is contained in:
parent
e8beeec94c
commit
62444de566
@ -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(
|
||||
|
||||
@ -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() }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user