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
2024-07-25 19:50:23 +08:00
committed by GitHub
parent 322b6ec615
commit 9338ba3525
2 changed files with 3 additions and 5 deletions
@@ -81,7 +81,9 @@
},
{
"protocol": "freedom",
"settings": {},
"settings": {
"domainStrategy": "UseIP"
},
"tag": "direct"
},
{
@@ -173,10 +173,6 @@ object V2rayConfigUtil {
&& settingsStorage?.decodeBool(AppConfig.PREF_FAKE_DNS_ENABLED) == true
) {
v2rayConfig.fakedns = listOf(V2rayConfig.FakednsBean())
v2rayConfig.outbounds.filter { it.protocol == PROTOCOL_FREEDOM && it.tag == TAG_DIRECT }
.forEach {
it.settings?.domainStrategy = "UseIP"
}
}
}