This commit is contained in:
lsyx 2024-04-05 12:03:01 +08:00
parent 1e9a6cb06b
commit 4f346f73be

View file

@ -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()