Skip to content

Commit 5305b08

Browse files
authored
1 parent 9f0ef36 commit 5305b08

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

v2rayN/ServiceLib/Common/WindowsUtils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ public static void RegWriteValue(string path, string name, object value)
5353

5454
public static async Task RemoveTunDevice()
5555
{
56-
var tunNameList = new List<string> { "singbox_tun", "xray_tun" };
56+
var tunNameList = new List<string> { "wintunsingbox_tun", "xray_tun" };
5757
foreach (var tunName in tunNameList)
5858
{
5959
try
6060
{
61-
var sum = MD5.HashData(Encoding.UTF8.GetBytes($"wintun{tunName}"));
61+
var sum = MD5.HashData(Encoding.UTF8.GetBytes(tunName));
6262
var guid = new Guid(sum);
6363
var pnpUtilPath = @"C:\Windows\System32\pnputil.exe";
6464
var arg = $$""" /remove-device "SWD\Wintun\{{{guid}}}" """;

0 commit comments

Comments
 (0)