mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-04 21:57:44 +03:00
Don't assume IPv4 and IPv6 for DoH servers
This commit is contained in:
parent
0a98be94a7
commit
a6cf9f847f
1 changed files with 0 additions and 3 deletions
|
@ -313,9 +313,6 @@ func (proxy *Proxy) updateRegisteredServers() error {
|
|||
}
|
||||
if proxy.SourceIPv4 || proxy.SourceIPv6 {
|
||||
isIPv4, isIPv6 := true, false
|
||||
if registeredServer.stamp.Proto == stamps.StampProtoTypeDoH {
|
||||
isIPv4, isIPv6 = true, true
|
||||
}
|
||||
if strings.HasPrefix(registeredServer.stamp.ServerAddrStr, "[") {
|
||||
isIPv4, isIPv6 = false, true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue