chore(config): simplify SOCKS inbound authentication and enable UDP

This commit is contained in:
zarazaex69
2026-04-07 23:09:49 +03:00
parent e81ed48fff
commit 7a59f5410d
4 changed files with 5 additions and 24 deletions
+1
View File
@@ -65,6 +65,7 @@ android {
productFlavors {
create("fdroid") {
dimension = "distribution"
applicationIdSuffix = ".fdroid"
buildConfigField("String", "DISTRIBUTION", "\"F-Droid\"")
}
create("playstore") {
@@ -22,14 +22,8 @@
"port": 10808,
"protocol": "socks",
"settings": {
"auth": "password",
"accounts": [
{
"user": "v2ray_local",
"pass": "CHANGE_ME_ON_RUNTIME"
}
],
"udp": false,
"auth": "noauth",
"udp": true,
"userLevel": 8
},
"sniffing": {
@@ -22,14 +22,8 @@
"port": 10808,
"protocol": "socks",
"settings": {
"auth": "password",
"accounts": [
{
"user": "v2ray_local",
"pass": "CHANGE_ME_ON_RUNTIME"
}
],
"udp": false,
"auth": "noauth",
"udp": true,
"userLevel": 8
},
"sniffing": {
@@ -380,14 +380,6 @@ object V2rayConfigManager {
}
inbound1.port = socksPort
if (inbound1.settings?.auth == "password" && inbound1.settings?.accounts != null) {
val randomPass = java.util.UUID.randomUUID().toString()
inbound1.settings?.accounts = listOf(
V2rayConfig.InboundBean.InSettingsBean.AccountBean("v2ray_local", randomPass)
)
inbound1.settings?.udp = false
}
val fakedns = MmkvManager.decodeSettingsBool(AppConfig.PREF_FAKE_DNS_ENABLED) == true
val sniffAllTlsAndHttp =
MmkvManager.decodeSettingsBool(AppConfig.PREF_SNIFFING_ENABLED, true) != false