summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--mullvad-tests/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/mullvad-tests/src/lib.rs b/mullvad-tests/src/lib.rs
index 076f2ec576..32f0b62889 100644
--- a/mullvad-tests/src/lib.rs
+++ b/mullvad-tests/src/lib.rs
@@ -394,7 +394,11 @@ impl MockOpenVpnPluginRpcClient {
pub fn up(&mut self) -> Result<()> {
let mut env: HashMap<String, String> = HashMap::new();
+ #[cfg(target_os = "linux")]
env.insert("dev".to_owned(), "lo".to_owned());
+ #[cfg(target_os = "windows")]
+ env.insert("dev".to_owned(), "loopback".to_owned());
+
env.insert("ifconfig_local".to_owned(), "10.0.0.10".to_owned());
env.insert("route_vpn_gateway".to_owned(), "10.0.0.1".to_owned());