diff --git a/CHANGELOG.md b/CHANGELOG.md index 37fbe8822bc3..aced86fe5798 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,7 @@ Line wrap the file at 100 chars. Th ### Fixed - macOS and Linux: Fix potential crash when disconnecting with DAITA enabled. +- Set tunnel name to `wg0-mullvad` when userspace WireGuard is enabled. #### macOS - Exclude programs when executed using a relative path from a shell. diff --git a/talpid-tunnel/src/tun_provider/unix.rs b/talpid-tunnel/src/tun_provider/unix.rs index 640af527b31c..31b77ba4c986 100644 --- a/talpid-tunnel/src/tun_provider/unix.rs +++ b/talpid-tunnel/src/tun_provider/unix.rs @@ -8,6 +8,8 @@ use std::{ }; use tun::{platform, Configuration, Device}; +const MULLVAD_INTERFACE_NAME: &str = "wg0-mullvad"; + /// Errors that can occur while setting up a tunnel device. #[derive(Debug, thiserror::Error)] pub enum Error { @@ -129,6 +131,7 @@ impl TunnelDevice { #[allow(unused_mut)] pub fn new() -> Result { let mut config = Configuration::default(); + config.name(MULLVAD_INTERFACE_NAME); #[cfg(target_os = "linux")] config.platform(|config| { diff --git a/talpid-wireguard/src/wireguard_kernel/mod.rs b/talpid-wireguard/src/wireguard_kernel/mod.rs index a3c053acfc07..2d8c166d35a1 100644 --- a/talpid-wireguard/src/wireguard_kernel/mod.rs +++ b/talpid-wireguard/src/wireguard_kernel/mod.rs @@ -84,7 +84,7 @@ pub enum Error { NetworkManager(#[source] nm_tunnel::Error), } -pub(crate) const MULLVAD_INTERFACE_NAME: &str = "wg0-mullvad"; +const MULLVAD_INTERFACE_NAME: &str = "wg0-mullvad"; #[derive(Debug)] pub struct Handle {