阿里云解析Bug修复

This commit is contained in:
2022-11-08 22:21:49 +08:00
parent a36415d93b
commit 8725d49b8e

View File

@@ -113,12 +113,14 @@ namespace Hua.DDNS.Jobs
})).Body.DomainRecords.Record; })).Body.DomainRecords.Record;
foreach (var aliDomainRecord in aliDescribeRecordList foreach (var aliDomainRecord in aliDescribeRecordList
.Where(m => m.Value != CurrentIpv4Address && _domainOption.subDomainArray.Any(n => m.Value == n))) .Where(m => m.Value != CurrentIpv4Address && _domainOption.subDomainArray.Any(n => m.RR == n)))
{ {
await aliClient.UpdateDomainRecordAsync(new UpdateDomainRecordRequest() await aliClient.UpdateDomainRecordAsync(new UpdateDomainRecordRequest()
{ {
RecordId = aliDomainRecord.RecordId, RecordId = aliDomainRecord.RecordId,
RR = aliDomainRecord.RR,
Type = aliDomainRecord.Type,
Value = CurrentIpv4Address, Value = CurrentIpv4Address,
}); });
} }