mirror of
https://github.com/openlibrecommunity/olcng.git
synced 2026-07-03 14:05:17 +02:00
chore(config): simplify SOCKS inbound authentication and enable UDP
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user