1.log change subdomain record event
2.repair install shell
This commit is contained in:
@@ -12,9 +12,9 @@ goto end
|
|||||||
:as_admin
|
:as_admin
|
||||||
SET basePath=%cd%
|
SET basePath=%cd%
|
||||||
SET serviceName=Hua.DDNS
|
SET serviceName=Hua.DDNS
|
||||||
SET displayName="Hua.DDNS Demo"
|
SET displayName=%serviceName%
|
||||||
SET description="Hua.DDNS Demo"
|
SET description=%serviceName%
|
||||||
SET servicePath="%basePath%\%serviceName%.exe"
|
SET servicePath="%basePath%\Hua.DDNS.exe"
|
||||||
ECHO %servicePath%
|
ECHO %servicePath%
|
||||||
net stop %serviceName%
|
net stop %serviceName%
|
||||||
sc delete %serviceName%
|
sc delete %serviceName%
|
||||||
|
|||||||
@@ -115,7 +115,6 @@ namespace Hua.DDNS.Jobs
|
|||||||
foreach (var aliDomainRecord in aliDescribeRecordList
|
foreach (var aliDomainRecord in aliDescribeRecordList
|
||||||
.Where(m => m.Value != CurrentIpv4Address && _domainOption.subDomainArray.Any(n => m.RR == 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,
|
||||||
@@ -123,6 +122,7 @@ namespace Hua.DDNS.Jobs
|
|||||||
Type = aliDomainRecord.Type,
|
Type = aliDomainRecord.Type,
|
||||||
Value = CurrentIpv4Address,
|
Value = CurrentIpv4Address,
|
||||||
});
|
});
|
||||||
|
_logger.LogInformation($"更新域名解析记录{aliDomainRecord.Value} To {CurrentIpv4Address}");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user