support change tun interface name (#151)

This commit is contained in:
yylt
2024-07-03 15:41:12 +08:00
committed by GitHub
parent 34f832bbad
commit 0f39bfcefa
3 changed files with 8 additions and 0 deletions
+2
View File
@@ -273,6 +273,8 @@ impl VirtualNic {
#[cfg(target_os = "linux")]
{
let dev_name = self.global_ctx.get_flags().dev_name;
config.name(format!("{}{}", dev_name, 0));
config.platform(|config| {
// detect protocol by ourselves for cross platform
config.packet_information(false);