From 81757e71822ece9b67f5a0541f7205b7451b4ecb Mon Sep 17 00:00:00 2001 From: weisd Date: Fri, 9 Aug 2024 21:30:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0config=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rustfs/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rustfs/src/main.rs b/rustfs/src/main.rs index f2d6fce6..8df3eed2 100644 --- a/rustfs/src/main.rs +++ b/rustfs/src/main.rs @@ -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()