diff options
author | WouterTinus <wouter.tinus@gmail.com> | 2019-09-29 23:28:42 +0200 |
---|---|---|
committer | WouterTinus <wouter.tinus@gmail.com> | 2019-09-29 23:28:42 +0200 |
commit | 658ca8b57e70cfb1c5c27e78ff7697e7e65c58e9 (patch) | |
tree | a2b6e9e75d31f63c5cd9bba0914f6428fec9143c /src/main.lib/Services/ProxyService.cs | |
parent | bef36f6424d4782c0b30af3c92af9824358f06fa (diff) | |
download | letsencrypt-win-simple-658ca8b57e70cfb1c5c27e78ff7697e7e65c58e9.zip letsencrypt-win-simple-658ca8b57e70cfb1c5c27e78ff7697e7e65c58e9.tar.gz letsencrypt-win-simple-658ca8b57e70cfb1c5c27e78ff7697e7e65c58e9.tar.bz2 |
huge settings refactoring
Diffstat (limited to 'src/main.lib/Services/ProxyService.cs')
-rw-r--r-- | src/main.lib/Services/ProxyService.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.lib/Services/ProxyService.cs b/src/main.lib/Services/ProxyService.cs index 715425f..02454e0 100644 --- a/src/main.lib/Services/ProxyService.cs +++ b/src/main.lib/Services/ProxyService.cs @@ -23,7 +23,7 @@ namespace PKISharp.WACS.Services { get { - return _settings.Proxy.Equals("[System]", StringComparison.OrdinalIgnoreCase); ; + return _settings.Acme.Proxy.Equals("[System]", StringComparison.OrdinalIgnoreCase); ; } } @@ -54,19 +54,19 @@ namespace PKISharp.WACS.Services { var proxy = UseSystemProxy ? null : - string.IsNullOrEmpty(_settings.Proxy) ? + string.IsNullOrEmpty(_settings.Acme.Proxy) ? new WebProxy() : - new WebProxy(_settings.Proxy); + new WebProxy(_settings.Acme.Proxy); if (proxy != null) { var testUrl = new Uri("http://proxy.example.com"); var proxyUrl = proxy.GetProxy(testUrl); - if (!string.IsNullOrWhiteSpace(_settings.ProxyUsername)) + if (!string.IsNullOrWhiteSpace(_settings.Acme.ProxyUsername)) { proxy.Credentials = new NetworkCredential( - _settings.ProxyUsername, - _settings.ProxyPassword); + _settings.Acme.ProxyUsername, + _settings.Acme.ProxyPassword); } var useProxy = !string.Equals(testUrl.Host, proxyUrl.Host); |