mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-18 22:20:06 +08:00
remove route block analysis & fix custom rule
This commit is contained in:
parent
d2afb9df0e
commit
353c54e4e1
@ -1,3 +0,0 @@
|
||||
domain:appcenter.ms
|
||||
domain:firebase.io
|
||||
domain:crashlytics.com
|
||||
@ -200,18 +200,6 @@ object ProfileManager {
|
||||
outbound = -2
|
||||
)
|
||||
)
|
||||
createRule(
|
||||
RuleEntity(
|
||||
name = app.getString(R.string.route_opt_block_analysis),
|
||||
domains = app.assets.open("analysis.txt").use {
|
||||
it.bufferedReader()
|
||||
.readLines()
|
||||
.filter { it.isNotBlank() }
|
||||
.joinToString("\n")
|
||||
},
|
||||
outbound = -2,
|
||||
)
|
||||
)
|
||||
val fuckedCountry = mutableListOf("cn:中国")
|
||||
if (Locale.getDefault().country != Locale.CHINA.country) {
|
||||
// 非中文用户
|
||||
|
||||
@ -157,5 +157,7 @@ fun SingBoxOptions.Rule_DefaultOptions.checkEmpty(): Boolean {
|
||||
if (port?.isNotEmpty() == true) return false
|
||||
if (port_range?.isNotEmpty() == true) return false
|
||||
if (source_ip_cidr?.isNotEmpty() == true) return false
|
||||
//
|
||||
if (!_hack_custom_config.isNullOrBlank()) return false
|
||||
return true
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user