Small fixes after some testing
This commit is contained in:
parent
dcbf45ec85
commit
0e164f739d
@ -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")]
|
||||||
|
@ -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! {
|
||||||
|
Loading…
Reference in New Issue
Block a user