HTTP DNS QueryRecord动作支持返回null

This commit is contained in:
刘祥超
2022-03-10 19:45:03 +08:00
parent 3e32fe8e10
commit 5644906b77

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