summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2018-07-10 18:19:41 -0300
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2018-07-23 13:13:44 -0300
commit67aed028c321aa3a49fa494bd418eb807115a184 (patch)
treee71f0305ce76a1d85139d1699c8d3ec55633c3c4
parent9abbeaa931828b078a7b5fd06e9c5e795be1c490 (diff)
downloadmullvadvpn-67aed028c321aa3a49fa494bd418eb807115a184.tar.xz
mullvadvpn-67aed028c321aa3a49fa494bd418eb807115a184.zip
Change mock interface on Windows
-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());