From a6cf9f847fcff3e7abf0b63465223a58ce6a4e9d Mon Sep 17 00:00:00 2001 From: Husam Ahmed <66067027+Ceicc@users.noreply.github.com> Date: Wed, 2 Aug 2023 22:53:56 +0300 Subject: [PATCH] Don't assume IPv4 and IPv6 for DoH servers --- dnscrypt-proxy/proxy.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/dnscrypt-proxy/proxy.go b/dnscrypt-proxy/proxy.go index c1b1e248..3f1ab90c 100644 --- a/dnscrypt-proxy/proxy.go +++ b/dnscrypt-proxy/proxy.go @@ -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 }