This commit is contained in:
Lsyx-Good 2024-06-10 15:12:39 +08:00 committed by GitHub
parent 1e9a6cb06b
commit 63d5a2a1be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1084,8 +1084,10 @@ namespace v2rayN
{ {
try try
{ {
var sum = MD5.HashData(Encoding.UTF8.GetBytes("wintunsingbox_tun"));
var guid = new Guid(sum);
string pnputilPath = @"C:\Windows\System32\pnputil.exe"; 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 // Try to remove the device
Process proc = new() Process proc = new()