From f05ae498c68dc3d709d091a17526c352be94d212 Mon Sep 17 00:00:00 2001 From: Amazing_DM Date: Mon, 30 Mar 2020 16:00:27 +0800 Subject: [PATCH] =?UTF-8?q?:art:=E5=AE=89=E8=A3=85Tap=20driver=E6=97=B6?= =?UTF-8?q?=E7=95=99=E5=87=BA=E4=B8=80=E7=82=B9=E6=97=B6=E9=97=B4=20?= =?UTF-8?q?=E9=98=B2=E6=AD=A2=E6=89=BE=E4=B8=8D=E5=88=B0=E9=80=82=E9=85=8D?= =?UTF-8?q?=E5=99=A8ID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Netch/Utils/Configuration.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Netch/Utils/Configuration.cs b/Netch/Utils/Configuration.cs index 069d57d0..d0d9a876 100644 --- a/Netch/Utils/Configuration.cs +++ b/Netch/Utils/Configuration.cs @@ -4,6 +4,7 @@ using System.IO; using System.Net; using System.Net.NetworkInformation; using System.Net.Sockets; +using System.Threading; using System.Windows.Forms; namespace Netch.Utils @@ -169,6 +170,8 @@ namespace Netch.Utils installProcess.Start(); installProcess.WaitForExit(); installProcess.Close(); + //给点时间,不然立马安装完毕就查找适配器可能会导致找不到适配器ID + Thread.Sleep(1000); Global.TUNTAP.ComponentID = TUNTAP.GetComponentID(); }