diff --git a/Netch/Controllers/DNSController.cs b/Netch/Controllers/DNSController.cs index 0f7b19f7..2bd7875c 100644 --- a/Netch/Controllers/DNSController.cs +++ b/Netch/Controllers/DNSController.cs @@ -9,7 +9,7 @@ namespace Netch.Controllers { Name = "DNS Service"; MainFile = "unbound.exe"; - RedirectStd = false; + // RedirectStd = false; } /// diff --git a/Netch/Controllers/Interface/Instance.cs b/Netch/Controllers/Interface/Instance.cs index 8c049509..1321f595 100644 --- a/Netch/Controllers/Interface/Instance.cs +++ b/Netch/Controllers/Interface/Instance.cs @@ -128,12 +128,13 @@ namespace Netch.Controllers Instance.Start(); if (priority != ProcessPriorityClass.Normal) Instance.PriorityClass = priority; - if (!RedirectStd || StartedKeywords.Count == 0) return true; + if (!RedirectStd) return true; // 启动日志重定向 Instance.BeginOutputReadLine(); Instance.BeginErrorReadLine(); SaveBufferTimer.Elapsed += SaveBufferTimerEvent; SaveBufferTimer.Enabled = true; + if (StartedKeywords.Count == 0) return true; // 等待启动 for (var i = 0; i < 1000; i++) { diff --git a/binaries b/binaries index c9dfa296..85dd5611 160000 --- a/binaries +++ b/binaries @@ -1 +1 @@ -Subproject commit c9dfa296fd5eb04361b140ac41065b87d6d68671 +Subproject commit 85dd5611fdb61677f6d023521d0e17626029a4a5