mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-06 18:10:25 +08:00
调用自定义HTTP DNS时增加action(值为GetDomains)
This commit is contained in:
@@ -55,7 +55,9 @@ func (this *CustomHTTPProvider) Auth(params maps.Map) error {
|
|||||||
|
|
||||||
// GetDomains 获取所有域名列表
|
// GetDomains 获取所有域名列表
|
||||||
func (this *CustomHTTPProvider) GetDomains() (domains []string, err error) {
|
func (this *CustomHTTPProvider) GetDomains() (domains []string, err error) {
|
||||||
resp, err := this.post(maps.Map{})
|
resp, err := this.post(maps.Map{
|
||||||
|
"action": "GetDomains",
|
||||||
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user