DNS服务商中的密钥数据以掩码方式显示

This commit is contained in:
GoEdgeLab
2024-03-18 10:20:22 +08:00
parent 7c8e996ff3
commit abf2cf2af4
11 changed files with 208 additions and 8 deletions

View File

@@ -66,6 +66,14 @@ func (this *CloudFlareProvider) Auth(params maps.Map) error {
return nil
}
// MaskParams 对参数进行掩码
func (this *CloudFlareProvider) MaskParams(params maps.Map) {
if params == nil {
return
}
params["apiKey"] = MaskString(params.GetString("apiKey"))
}
// GetDomains 获取所有域名列表
func (this *CloudFlareProvider) GetDomains() (domains []string, err error) {
for page := 1; page <= 500; page++ {