remove route block analysis & fix custom rule

This commit is contained in:
armv9 2025-09-05 13:02:13 +09:00
parent d2afb9df0e
commit 353c54e4e1
3 changed files with 2 additions and 15 deletions

View File

@ -1,3 +0,0 @@
domain:appcenter.ms
domain:firebase.io
domain:crashlytics.com

View File

@ -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) {
// 非中文用户

View File

@ -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
}