We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7219425 commit e0881caCopy full SHA for e0881ca
V2rayNG/app/src/main/java/com/v2ray/ang/handler/V2rayConfigManager.kt
@@ -828,7 +828,11 @@ object V2rayConfigManager {
828
for (item in proxyOutboundList) {
829
val domain = item.getServerAddress()
830
if (domain.isNullOrEmpty()) continue
831
- if (newHosts.containsKey(domain)) continue
+
832
+ if (newHosts.containsKey(domain)) {
833
+ item.ensureSockopt().domainStrategy = if (preferIpv6) "UseIPv6v4" else "UseIPv4v6"
834
+ continue
835
+ }
836
837
val resolvedIps = HttpUtil.resolveHostToIP(domain, preferIpv6)
838
if (resolvedIps.isNullOrEmpty()) continue
0 commit comments