From 968f177e06930f701bc8274e281a0822f0631eff Mon Sep 17 00:00:00 2001 From: Chleba Date: Mon, 22 Apr 2024 02:18:17 +0200 Subject: [PATCH] fix getting active interfaces --- src/components/interfaces.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/interfaces.rs b/src/components/interfaces.rs index f7842b6..082f269 100644 --- a/src/components/interfaces.rs +++ b/src/components/interfaces.rs @@ -46,7 +46,7 @@ impl Interfaces { for ip in &intf.ips { // -- set active interface that's not localhost // if ip.is_ipv4() && ip.ip().to_string() != "127.0.0.1" { - if ip.ip().to_string().ne("127.0.0.1") { + if ip.is_ipv4() && ip.ip().to_string().ne("127.0.0.1") { self.active_interfaces.push(intf.clone()); break; }