捕捉到未处理错误打开日志

减少TUN/TAP设置路由表代码
日志细节优化
This commit is contained in:
ChsBuffer
2020-07-28 16:10:26 +08:00
parent b6a3f5bc36
commit c9396bd6b2
13 changed files with 240 additions and 352 deletions

View File

@@ -1,4 +1,5 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
using Netch.Models;
using Netch.Utils;
@@ -43,7 +44,7 @@ namespace Netch.Controllers
return (true, natType, localEnd, publicEnd);
}
catch (Exception e)
catch (Win32Exception e)
{
Logging.Error("NTT 进程出错\n" + e);
Stop();