Small fixes after some testing

This commit is contained in:
Brian Picciano 2023-08-03 16:28:28 +02:00
parent dcbf45ec85
commit 0e164f739d
2 changed files with 3 additions and 1 deletions

View File

@ -27,6 +27,8 @@ impl From<ConfigDNSRecord> for domain::checker::DNSRecord {
#[derive(Deserialize, Serialize, Clone)] #[derive(Deserialize, Serialize, Clone)]
pub struct Config { pub struct Config {
pub passphrase: String, pub passphrase: String,
#[serde(default)]
pub dns_records: Vec<ConfigDNSRecord>, pub dns_records: Vec<ConfigDNSRecord>,
#[serde(default = "default_interface_domain")] #[serde(default = "default_interface_domain")]

View File

@ -199,7 +199,7 @@ async fn listen(
let listener = tokio::net::TcpListener::bind(addr) let listener = tokio::net::TcpListener::bind(addr)
.await .await
.or_unexpected_while("binding tcp socket")?; .expect("failed to bind tcp socket");
loop { loop {
let (conn, addr) = tokio::select! { let (conn, addr) = tokio::select! {