From 63d5a2a1be046c0d802dc9fcfcc014bb193c76f5 Mon Sep 17 00:00:00 2001 From: Lsyx-Good <59752988+Lsyx-Good@users.noreply.github.com> Date: Mon, 10 Jun 2024 15:12:39 +0800 Subject: [PATCH] Fix bug (#5213) --- v2rayN/v2rayN/Common/Utils.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/v2rayN/v2rayN/Common/Utils.cs b/v2rayN/v2rayN/Common/Utils.cs index 286fac9e..e8c56d18 100644 --- a/v2rayN/v2rayN/Common/Utils.cs +++ b/v2rayN/v2rayN/Common/Utils.cs @@ -1084,8 +1084,10 @@ namespace v2rayN { 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()