v0.5.2
This commit is contained in:
@@ -274,6 +274,7 @@ pub enum DirectoryError {
|
||||
NoTlsAlpn01Challenge,
|
||||
}
|
||||
|
||||
#[allow(unused_mut)]
|
||||
async fn https(
|
||||
url: impl AsRef<str>,
|
||||
method: Method,
|
||||
|
||||
@@ -93,12 +93,6 @@ impl Config {
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
let cache = PathBuf::from(self.value_require(("acme", acme_id, "cache"))?);
|
||||
if !cache.exists() {
|
||||
std::fs::create_dir_all(&cache).map_err(|err| {
|
||||
format!("Failed to create ACME cache directory {:?}: {}", cache, err)
|
||||
})?;
|
||||
}
|
||||
|
||||
let renew_before: Duration =
|
||||
self.property_or_static(("acme", acme_id, "renew-before"), "30d")?;
|
||||
|
||||
|
||||
@@ -115,6 +115,8 @@ pub trait SessionManager: Sync + Send + 'static + Clone {
|
||||
tracing::debug!(
|
||||
context = "tls",
|
||||
event = "error",
|
||||
instance = session.instance.id,
|
||||
protocol = ?session.instance.protocol,
|
||||
remote.ip = session.remote_ip.to_string(),
|
||||
"Failed to accept TLS connection: {}",
|
||||
err
|
||||
|
||||
Reference in New Issue
Block a user