mirror of
https://github.com/netchx/netch.git
synced 2026-04-21 21:19:52 +08:00
fix: TAP Mode first time searching adapter
This commit is contained in:
@@ -54,12 +54,18 @@ namespace Netch.Controllers
|
||||
}
|
||||
|
||||
// 查找并安装 TAP 适配器
|
||||
if (!SearchTapAdapter() && !AddTap())
|
||||
if (!SearchTapAdapter())
|
||||
{
|
||||
Logging.Error("Tap 适配器安装失败");
|
||||
return false;
|
||||
if (!AddTap())
|
||||
{
|
||||
Logging.Error("Tap 适配器安装失败");
|
||||
return false;
|
||||
}
|
||||
|
||||
SearchTapAdapter();
|
||||
}
|
||||
|
||||
|
||||
SetupRouteTable();
|
||||
|
||||
string dns;
|
||||
|
||||
Reference in New Issue
Block a user