diff --git a/v2rayN/v2rayN/Common/Utils.cs b/v2rayN/v2rayN/Common/Utils.cs index 286fac9e71..e8c56d181c 100644 --- a/v2rayN/v2rayN/Common/Utils.cs +++ b/v2rayN/v2rayN/Common/Utils.cs @@ -1084,8 +1084,10 @@ public static void RemoveTunDevice() { try { + var sum = MD5.HashData(Encoding.UTF8.GetBytes("wintunsingbox_tun")); + var guid = new Guid(sum); string pnputilPath = @"C:\Windows\System32\pnputil.exe"; - string arg = $" /remove-device /deviceid \"wintun\""; + string arg = $$""" /remove-device "SWD\Wintun\{{{guid}}}" """; // Try to remove the device Process proc = new()