diff options
| author | David Lönnhager <david.l@mullvad.net> | 2021-11-19 11:56:34 +0100 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2021-11-19 11:56:41 +0100 |
| commit | 4f4f1c541385af62d35506b5bd312ccccc0e7c9f (patch) | |
| tree | b012d2b4c6f60eb1315bde0a3eaf3fcf36e0bb81 | |
| parent | 826e74cf57a40e3159ea7c87c1ef5526bc04ca5a (diff) | |
| download | mullvadvpn-4f4f1c541385af62d35506b5bd312ccccc0e7c9f.tar.xz mullvadvpn-4f4f1c541385af62d35506b5bd312ccccc0e7c9f.zip | |
Handle empty (filtered) ST paths correctly on Windows
| -rw-r--r-- | talpid-core/src/split_tunnel/windows/driver.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/talpid-core/src/split_tunnel/windows/driver.rs b/talpid-core/src/split_tunnel/windows/driver.rs index e82f932dd0..8f7c7198f6 100644 --- a/talpid-core/src/split_tunnel/windows/driver.rs +++ b/talpid-core/src/split_tunnel/windows/driver.rs @@ -328,6 +328,10 @@ impl DeviceHandle { } } + if device_paths.is_empty() { + return self.clear_config(); + } + log::debug!("Excluded device paths:"); for path in &device_paths { log::debug!(" {:?}", path); |
