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