Skip to content

Commit

Permalink
fixup! Fix bridge ip logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Serock3 committed Jan 8, 2025
1 parent b7a3697 commit 9e0dd35
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions test/test-manager/src/vm/network/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,6 @@ pub(crate) fn find_vm_bridge(guest_ip: &Ipv4Addr) -> Result<(String, Ipv4Addr)>
}
};
};
let netmask = SocketAddrV4::from(*netmask).ip();
let Ok(ip_v4_network) = ipnetwork::Ipv4Network::with_netmask(address, netmask) else {
continue;
};
if ip_v4_network.contains(guest_ip) {
return Ok((addr.interface_name.to_owned(), address));
}
}

// This is probably either due to IP mismatch or Tart not running
Expand Down

0 comments on commit 9e0dd35

Please sign in to comment.