Skip to content

Commit

Permalink
fix getting active interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Chleba committed Apr 22, 2024
1 parent ecefe29 commit 968f177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/interfaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 968f177

Please sign in to comment.