mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-20 07:00: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(
|
if (country == "cn") createRule(
|
||||||
RuleEntity(
|
RuleEntity(
|
||||||
name = app.getString(R.string.route_play_store, displayCountry),
|
name = app.getString(R.string.route_play_store, displayCountry),
|
||||||
domains = "domain:googleapis.cn",
|
domains = "googleapis.cn",
|
||||||
), false
|
), false
|
||||||
)
|
)
|
||||||
createRule(
|
createRule(
|
||||||
|
|||||||
@ -47,8 +47,7 @@ fun SingBoxOptions.DNSRule_DefaultOptions.makeSingBoxRule(list: List<String>) {
|
|||||||
} else if (it.startsWith("keyword:")) {
|
} else if (it.startsWith("keyword:")) {
|
||||||
domain_keyword.plusAssign(it.removePrefix("keyword:").lowercase())
|
domain_keyword.plusAssign(it.removePrefix("keyword:").lowercase())
|
||||||
} else {
|
} else {
|
||||||
// https://github.com/SagerNet/sing-box/commit/5d41e328d4a9f7549dd27f11b4ccc43710a73664
|
domain_suffix.plusAssign(it.lowercase())
|
||||||
domain.plusAssign(it.lowercase())
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rule_set?.removeIf { it.isNullOrBlank() }
|
rule_set?.removeIf { it.isNullOrBlank() }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user