mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-17 01:30:33 +00:00
添加config默认值
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user