diff options
author | Wouter Tinus <wouter.tinus@gmail.com> | 2020-04-10 06:22:27 +0200 |
---|---|---|
committer | Wouter Tinus <wouter.tinus@gmail.com> | 2020-04-10 06:22:27 +0200 |
commit | b4560af92bd79a500bf0bf0eb6cd8400d4df66f9 (patch) | |
tree | 742f81fae653a6f360ead42da34cdb7e6286e6c3 | |
parent | b7b3eb197e11034b131f69ddceb7d4c593185c5e (diff) | |
download | letsencrypt-win-simple-b4560af92bd79a500bf0bf0eb6cd8400d4df66f9.zip letsencrypt-win-simple-b4560af92bd79a500bf0bf0eb6cd8400d4df66f9.tar.gz letsencrypt-win-simple-b4560af92bd79a500bf0bf0eb6cd8400d4df66f9.tar.bz2 |
Proxy support for Azure
-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 }; |