From 1239e64cd9311f8f2b9b0762e0eb06536ed8bc30 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 1 Dec 2020 16:08:33 +0100 Subject: [PATCH] Correctly check for HTTPS type --- dnscrypt-proxy/plugin_block_name.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnscrypt-proxy/plugin_block_name.go b/dnscrypt-proxy/plugin_block_name.go index 82ab9769..1eef6934 100644 --- a/dnscrypt-proxy/plugin_block_name.go +++ b/dnscrypt-proxy/plugin_block_name.go @@ -189,7 +189,7 @@ func (plugin *PluginBlockNameResponse) Eval(pluginsState *PluginsState, msg *dns target = answer.(*dns.CNAME).Target } else if header.Rrtype == dns.TypeSVCB && answer.(*dns.SVCB).Priority == 0 { target = answer.(*dns.SVCB).Target - } else if header.Rrtype == dns.TypeSVCB && answer.(*dns.HTTPS).Priority == 0 { + } else if header.Rrtype == dns.TypeHTTPS && answer.(*dns.HTTPS).Priority == 0 { target = answer.(*dns.HTTPS).Target } else { continue