correctly set apt proxy configuration

This commit is contained in:
Dietmar Maurer committed 2021-05-12 12:19:24 +02:00
1 parent 4ce7da516d
commit 440472cb32
4 files changed
+57 -14

No files matched your search

+3 -1
View File
@@ -147,6 +147,7 @@ impl NodeConfig {
AcmeDomainIter::new(self)
}
/// Returns the parsed ProxyConfig
pub fn http_proxy(&self) -> Option<ProxyConfig> {
if let Some(http_proxy) = &self.http_proxy {
match ProxyConfig::parse_proxy_url(&http_proxy) {
@@ -158,7 +159,8 @@ impl NodeConfig {
}
}
pub fn set_proxy(&mut self, http_proxy: Option<String>) {
/// Sets the HTTP proxy configuration
pub fn set_http_proxy(&mut self, http_proxy: Option<String>) {
self.http_proxy = http_proxy;
}