添加config默认值

This commit is contained in:
weisd
2024-08-09 21:30:59 +08:00
parent 71ff5aa253
commit 81757e7182

View File

@@ -48,6 +48,7 @@ async fn run(opt: config::Opt) -> Result<()> {
let mut domain_name = {
netif::up()?
.map(|x| x.address().to_owned())
.filter(|v| v.is_ipv4())
// .filter(|v| v.is_ipv4() && !v.is_loopback() && !v.is_unspecified())
.map(|v| format!("{}", v))
.next()