summaryrefslogtreecommitdiffhomepage
path: root/test/test-runner/src/net.rs
diff options
context:
space:
mode:
authorMarkus Pettersson <markus.pettersson@mullvad.net>2023-11-17 15:37:13 +0100
committerMarkus Pettersson <markus.pettersson@mullvad.net>2023-12-06 14:37:06 +0100
commit1b930b893fa3fcb06f5fee4affbfb62887d0e68a (patch)
tree21b0836c5b5730f844950a2764aa652832f13849 /test/test-runner/src/net.rs
parentac3e222d031b0f599561c4c30504de5cd3f871a2 (diff)
downloadmullvadvpn-1b930b893fa3fcb06f5fee4affbfb62887d0e68a.tar.xz
mullvadvpn-1b930b893fa3fcb06f5fee4affbfb62887d0e68a.zip
Implement RPC for reading & writing to app cache file
- Implement RPC for writing to a file in a test runner / guest VM. - Implement RPC for getting app cache directory - Implement RPC for restarting the app in a test runner / guest vm - Implement RPC for starting the app in a test runner / guest vm - Implement RPC for stopping the app in a test runner / guest vm - Implement `find_cache_traces` on Window & macOS
Diffstat (limited to 'test/test-runner/src/net.rs')
-rw-r--r--test/test-runner/src/net.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-runner/src/net.rs b/test/test-runner/src/net.rs
index f40aece4c9..a4a7a2db47 100644
--- a/test/test-runner/src/net.rs
+++ b/test/test-runner/src/net.rs
@@ -35,7 +35,7 @@ pub async fn send_tcp(
};
#[cfg(target_os = "macos")]
- sock.bind_device_by_index(Some(interface_index))
+ sock.bind_device_by_index_v4(Some(interface_index))
.map_err(|error| {
log::error!("Failed to set IP_BOUND_IF on socket: {error}");
test_rpc::Error::SendTcp
@@ -102,7 +102,7 @@ pub async fn send_udp(
};
#[cfg(target_os = "macos")]
- sock.bind_device_by_index(Some(interface_index))
+ sock.bind_device_by_index_v4(Some(interface_index))
.map_err(|error| {
log::error!("Failed to set IP_BOUND_IF on socket: {error}");
test_rpc::Error::SendUdp