mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-06 01:50:25 +08:00
HTTP DNS QueryRecord动作支持返回null
This commit is contained in:
@@ -98,7 +98,7 @@ func (this *CustomHTTPProvider) QueryRecord(domain string, name string, recordTy
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if len(resp) == 0 {
|
if len(resp) == 0 || string(resp) == "null" {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
record := &dnstypes.Record{}
|
record := &dnstypes.Record{}
|
||||||
|
|||||||
Reference in New Issue
Block a user