Extra records don't necessarily need to raise a warning

Proper TXT records can still be present in the response.
This commit is contained in:
Frank Denis 2019-10-17 18:33:24 +02:00
parent 108b7f8446
commit 4a5bf3ed8c
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ func FetchCurrentDNSCryptCert(proxy *Proxy, serverName *string, proto string, pk
for _, answerRr := range in.Answer {
var txt string
if t, ok := answerRr.(*dns.TXT); !ok {
dlog.Warnf("[%v] Certificate not found", providerName)
dlog.Noticef("[%v] Extra record of type [%v] found in certificate", providerName, answerRr.Header().Rrtype)
continue
} else {
txt = strings.Join(t.Txt, "")