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)]
pub struct Config {
pub passphrase: String,
#[serde(default)]
pub dns_records: Vec<ConfigDNSRecord>,
#[serde(default = "default_interface_domain")]

View File

@ -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! {