Skip to content

Commit

Permalink
Fix bug (#5213)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lsyx-Good committed Jun 10, 2024
1 parent 1e9a6cb commit 63d5a2a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion v2rayN/v2rayN/Common/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 63d5a2a

Please sign in to comment.