diff --git a/src/service/config.rs b/src/service/config.rs index 6552a6c..35ad9ec 100644 --- a/src/service/config.rs +++ b/src/service/config.rs @@ -27,6 +27,8 @@ impl From for domain::checker::DNSRecord { #[derive(Deserialize, Serialize, Clone)] pub struct Config { pub passphrase: String, + + #[serde(default)] pub dns_records: Vec, #[serde(default = "default_interface_domain")] diff --git a/src/service/gemini.rs b/src/service/gemini.rs index 5de80d2..68c3dcf 100644 --- a/src/service/gemini.rs +++ b/src/service/gemini.rs @@ -199,7 +199,7 @@ async fn listen( let listener = tokio::net::TcpListener::bind(addr) .await - .or_unexpected_while("binding tcp socket")?; + .expect("failed to bind tcp socket"); loop { let (conn, addr) = tokio::select! {