mirror of
https://github.com/2dust/v2rayNG.git
synced 2025-06-28 12:19:52 +00:00
Fix missing sockopt.domainStrategy (#4673)
* Fix missing sockopt.domainStrategy * Fix
This commit is contained in:
parent
7219425258
commit
e0881caab4
1 changed files with 5 additions and 1 deletions
|
@ -828,7 +828,11 @@ object V2rayConfigManager {
|
|||
for (item in proxyOutboundList) {
|
||||
val domain = item.getServerAddress()
|
||||
if (domain.isNullOrEmpty()) continue
|
||||
if (newHosts.containsKey(domain)) continue
|
||||
|
||||
if (newHosts.containsKey(domain)) {
|
||||
item.ensureSockopt().domainStrategy = if (preferIpv6) "UseIPv6v4" else "UseIPv4v6"
|
||||
continue
|
||||
}
|
||||
|
||||
val resolvedIps = HttpUtil.resolveHostToIP(domain, preferIpv6)
|
||||
if (resolvedIps.isNullOrEmpty()) continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue