From 0e164f739da44428655a98733498ead94001de7f Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Thu, 3 Aug 2023 16:28:28 +0200 Subject: [PATCH] Small fixes after some testing --- src/service/config.rs | 2 ++ src/service/gemini.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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! {