Set UseIP in Direct to break the Android Private DNS dead loop (#3362)

* Set UseIP in Direct to break the Android Private DNS dead loop

* fakedns: No need to set UseIP again
This commit is contained in:
mayampi01 authored and GitHub committed 2024-07-25 19:50:23 +08:00
1 parent 322b6ec615
commit 9338ba3525
2 files changed
+3 -5

No files matched your search

@@ -81,7 +81,9 @@
}, },
{ {
"protocol": "freedom", "protocol": "freedom",
"settings": {}, "settings": {
"domainStrategy": "UseIP"
},
"tag": "direct" "tag": "direct"
}, },
{ {
@@ -173,10 +173,6 @@ object V2rayConfigUtil {
&& settingsStorage?.decodeBool(AppConfig.PREF_FAKE_DNS_ENABLED) == true && settingsStorage?.decodeBool(AppConfig.PREF_FAKE_DNS_ENABLED) == true
) { ) {
v2rayConfig.fakedns = listOf(V2rayConfig.FakednsBean()) v2rayConfig.fakedns = listOf(V2rayConfig.FakednsBean())
v2rayConfig.outbounds.filter { it.protocol == PROTOCOL_FREEDOM && it.tag == TAG_DIRECT }
.forEach {
it.settings?.domainStrategy = "UseIP"
}
} }
} }