From a5856fc63aa0412c8c06df089637715dc4ff0474 Mon Sep 17 00:00:00 2001 From: Mmx233 Date: Thu, 8 Dec 2022 19:03:39 +0800 Subject: [PATCH] =?UTF-8?q?improve:=20=E9=98=BF=E9=87=8C=E4=BA=91=20dns=20?= =?UTF-8?q?ip=20=E7=9B=B8=E5=90=8C=E4=B8=8D=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dns/aliyun/aliyun.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dns/aliyun/aliyun.go b/dns/aliyun/aliyun.go index 951bf57..6dcddbd 100644 --- a/dns/aliyun/aliyun.go +++ b/dns/aliyun/aliyun.go @@ -165,6 +165,9 @@ func (a DnsProvider) SetDomainRecord(domain, ip string) error { } if exist { + if record.Value == ip { + return nil + } return a.UpdateRecord(record.RecordId, subDomain, ip) } else { return a.NewRecord(subDomain, rootDomain, ip)