From f73853d115f4c8d178a7e5405c1a2df1db7de451 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20L=C3=B6nnhager?= Date: Fri, 30 Aug 2024 19:29:46 +0200 Subject: [PATCH] Fix tunnel name to wg0-mullvad for wggo --- talpid-tunnel/src/tun_provider/unix.rs | 3 +++ 1 file changed, 3 insertions(+) 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| {