mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 15:37:02 +00:00
添加config默认值
This commit is contained in:
@@ -48,6 +48,7 @@ async fn run(opt: config::Opt) -> Result<()> {
|
|||||||
let mut domain_name = {
|
let mut domain_name = {
|
||||||
netif::up()?
|
netif::up()?
|
||||||
.map(|x| x.address().to_owned())
|
.map(|x| x.address().to_owned())
|
||||||
|
.filter(|v| v.is_ipv4())
|
||||||
// .filter(|v| v.is_ipv4() && !v.is_loopback() && !v.is_unspecified())
|
// .filter(|v| v.is_ipv4() && !v.is_loopback() && !v.is_unspecified())
|
||||||
.map(|v| format!("{}", v))
|
.map(|v| format!("{}", v))
|
||||||
.next()
|
.next()
|
||||||
|
|||||||
Reference in New Issue
Block a user