Skip to content

Commit

Permalink
Fix tunnel name to wg0-mullvad for wggo
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Aug 30, 2024
1 parent b0c1bcc commit f73853d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions talpid-tunnel/src/tun_provider/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -129,6 +131,7 @@ impl TunnelDevice {
#[allow(unused_mut)]
pub fn new() -> Result<Self, NetworkInterfaceError> {
let mut config = Configuration::default();
config.name(MULLVAD_INTERFACE_NAME);

#[cfg(target_os = "linux")]
config.platform(|config| {
Expand Down

0 comments on commit f73853d

Please sign in to comment.