mirror of
https://github.com/netchx/netch.git
synced 2026-05-09 22:54:03 +08:00
捕捉到未处理错误打开日志
减少TUN/TAP设置路由表代码 日志细节优化
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user