mirror of
https://github.com/2dust/v2rayN.git
synced 2025-09-03 00:36:20 +00:00
Update CoreHandler.cs
This commit is contained in:
parent
00488ca6ce
commit
14ed17741d
1 changed files with 8 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace ServiceLib.Handler
|
namespace ServiceLib.Handler
|
||||||
|
@ -82,7 +82,12 @@ namespace ServiceLib.Handler
|
||||||
UpdateFunc(false, $"{Utils.GetRuntimeInfo()}");
|
UpdateFunc(false, $"{Utils.GetRuntimeInfo()}");
|
||||||
UpdateFunc(false, string.Format(ResUI.StartService, DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss")));
|
UpdateFunc(false, string.Format(ResUI.StartService, DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss")));
|
||||||
await CoreStop();
|
await CoreStop();
|
||||||
await Task.Delay(100);
|
// if (_config.TunModeItem.EnableTun)
|
||||||
|
// {
|
||||||
|
await Task.Delay(1000);
|
||||||
|
Utils.RemoveTunDevice();
|
||||||
|
// }
|
||||||
|
await Task.Delay(1000);
|
||||||
await CoreStart(node);
|
await CoreStart(node);
|
||||||
await CoreStartPreService(node);
|
await CoreStartPreService(node);
|
||||||
if (_process != null)
|
if (_process != null)
|
||||||
|
|
Loading…
Reference in a new issue