diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/plugin.validation.dns.azure/Azure.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugin.validation.dns.azure/Azure.cs b/src/plugin.validation.dns.azure/Azure.cs index 3ae1af0..ae16917 100755 --- a/src/plugin.validation.dns.azure/Azure.cs +++ b/src/plugin.validation.dns.azure/Azure.cs @@ -16,17 +16,20 @@ namespace PKISharp.WACS.Plugins.ValidationPlugins.Dns { private DnsManagementClient _azureDnsClient; private readonly DomainParseService _domainParser; + private readonly ProxyService _proxyService; private readonly AzureOptions _options; public Azure(AzureOptions options, DomainParseService domainParser, LookupClientProvider dnsClient, + ProxyService proxyService, ILogService log, ISettingsService settings) : base(dnsClient, log, settings) { _options = options; _domainParser = domainParser; + _proxyService = proxyService; } public override async Task CreateRecord(string recordName, string token) @@ -50,7 +53,7 @@ namespace PKISharp.WACS.Plugins.ValidationPlugins.Dns } }; - await client.RecordSets.CreateOrUpdateAsync(_options.ResourceGroupName, + _ = await client.RecordSets.CreateOrUpdateAsync(_options.ResourceGroupName, zone, subDomain, RecordType.TXT, @@ -79,7 +82,7 @@ namespace PKISharp.WACS.Plugins.ValidationPlugins.Dns _options.Secret.Value); } - _azureDnsClient = new DnsManagementClient(credentials) + _azureDnsClient = new DnsManagementClient(credentials, _proxyService.GetHttpClient(), true) { SubscriptionId = _options.SubscriptionId }; |