From beabf46a8ef6497ffe9eee7d22943b609c128a93 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Thu, 10 Mar 2022 19:45:03 +0800 Subject: [PATCH] =?UTF-8?q?HTTP=20DNS=20QueryRecord=E5=8A=A8=E4=BD=9C?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=BF=94=E5=9B=9Enull?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/dnsclients/provider_custom_http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/dnsclients/provider_custom_http.go b/internal/dnsclients/provider_custom_http.go index 6c726c21..e99bde8c 100644 --- a/internal/dnsclients/provider_custom_http.go +++ b/internal/dnsclients/provider_custom_http.go @@ -98,7 +98,7 @@ func (this *CustomHTTPProvider) QueryRecord(domain string, name string, recordTy if err != nil { return nil, err } - if len(resp) == 0 { + if len(resp) == 0 || string(resp) == "null" { return nil, nil } record := &dnstypes.Record{}