From 5305b0843bcdbacabd889a9bf164cc6d83a85f98 Mon Sep 17 00:00:00 2001 From: DHR60 Date: Fri, 17 Apr 2026 05:36:42 +0000 Subject: [PATCH] Fix (#9128) --- v2rayN/GlobalHotKeys | 2 +- v2rayN/ServiceLib/Common/WindowsUtils.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/v2rayN/GlobalHotKeys b/v2rayN/GlobalHotKeys index ffb2850d..50f615b6 160000 --- a/v2rayN/GlobalHotKeys +++ b/v2rayN/GlobalHotKeys @@ -1 +1 @@ -Subproject commit ffb2850df0991495d0918e13cc5701737f26175a +Subproject commit 50f615b671ff8d4a6a850aed19da5f94f58b5d96 diff --git a/v2rayN/ServiceLib/Common/WindowsUtils.cs b/v2rayN/ServiceLib/Common/WindowsUtils.cs index d801c343..6cd47f0a 100644 --- a/v2rayN/ServiceLib/Common/WindowsUtils.cs +++ b/v2rayN/ServiceLib/Common/WindowsUtils.cs @@ -53,12 +53,12 @@ internal static class WindowsUtils public static async Task RemoveTunDevice() { - var tunNameList = new List { "singbox_tun", "xray_tun" }; + var tunNameList = new List { "wintunsingbox_tun", "xray_tun" }; foreach (var tunName in tunNameList) { try { - var sum = MD5.HashData(Encoding.UTF8.GetBytes($"wintun{tunName}")); + var sum = MD5.HashData(Encoding.UTF8.GetBytes(tunName)); var guid = new Guid(sum); var pnpUtilPath = @"C:\Windows\System32\pnputil.exe"; var arg = $$""" /remove-device "SWD\Wintun\{{{guid}}}" """;