summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorSebastian Holmin <sebastian.holmin@mullvad.net>2025-01-08 15:54:01 +0100
committerSebastian Holmin <sebastian.holmin@mullvad.net>2025-01-08 15:54:01 +0100
commitb23da797007f5f4617b3fa484be2f39ebe67ffc4 (patch)
tree11f5da07151c0ad381fa1a7d917c58f68ec18864 /test
parent88ef98179956317730fbf5396c9f7816622512d0 (diff)
downloadmullvadvpn-b23da797007f5f4617b3fa484be2f39ebe67ffc4.tar.xz
mullvadvpn-b23da797007f5f4617b3fa484be2f39ebe67ffc4.zip
Update docstring
Diffstat (limited to 'test')
-rw-r--r--test/test-manager/src/vm/network/macos.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test-manager/src/vm/network/macos.rs b/test/test-manager/src/vm/network/macos.rs
index d0e48fbd7d..3d8bc0fd2f 100644
--- a/test/test-manager/src/vm/network/macos.rs
+++ b/test/test-manager/src/vm/network/macos.rs
@@ -44,9 +44,8 @@ pub async fn setup_test_network() -> Result<()> {
Ok(())
}
-/// A hack to find the Tart bridge interface using `NON_TUN_GATEWAY`.
-/// It should be possible to retrieve this using the virtualization framework instead,
-/// but that requires an entitlement.
+/// Returns the interface name and IP address of the bridge gateway, which is the (first) bridge
+/// network that the given `guest_ip` belongs to.
pub(crate) fn find_vm_bridge(guest_ip: &Ipv4Addr) -> Result<(String, Ipv4Addr)> {
for addr in nix::ifaddrs::getifaddrs()
.unwrap()