HTTP DNS QueryRecord动作支持返回null

This commit is contained in:
GoEdgeLab
2022-03-10 19:45:03 +08:00
parent c5d552833b
commit beabf46a8e

View File

@@ -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{}