mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
TUNController: check Interop Init() return value.
when false, throws MessageException
This commit is contained in:
@@ -89,7 +89,8 @@ namespace Netch.Controllers
|
||||
#endregion
|
||||
|
||||
Global.Logger.Debug("tun2socks init");
|
||||
Init();
|
||||
if (!Init())
|
||||
throw new MessageException("tun2socks start failed, reboot your system and start again.");
|
||||
|
||||
_tunAdapter = new TunAdapter();
|
||||
switch (mode.Type)
|
||||
|
||||
Reference in New Issue
Block a user