fix: TAP Mode first time searching adapter

This commit is contained in:
ChsBuffer
2020-10-19 17:41:01 +08:00
parent ef8013c073
commit 30854deba6

View File

@@ -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;