mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-30 14:56:19 +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;
|
||||
|
||||
namespace ServiceLib.Handler
|
||||
|
@ -82,7 +82,12 @@ namespace ServiceLib.Handler
|
|||
UpdateFunc(false, $"{Utils.GetRuntimeInfo()}");
|
||||
UpdateFunc(false, string.Format(ResUI.StartService, DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss")));
|
||||
await CoreStop();
|
||||
await Task.Delay(100);
|
||||
// if (_config.TunModeItem.EnableTun)
|
||||
// {
|
||||
await Task.Delay(1000);
|
||||
Utils.RemoveTunDevice();
|
||||
// }
|
||||
await Task.Delay(1000);
|
||||
await CoreStart(node);
|
||||
await CoreStartPreService(node);
|
||||
if (_process != null)
|
||||
|
@ -368,4 +373,4 @@ namespace ServiceLib.Handler
|
|||
|
||||
#endregion Linux
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue