From d90a48577cba3f122486f14e7bc04a2552429eef Mon Sep 17 00:00:00 2001 From: ChsBuffer <33744752+chsbuffer@users.noreply.github.com> Date: Sun, 16 Aug 2020 07:28:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dunbound=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=9C=AA=E9=87=8D=E5=AE=9A=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Netch/Controllers/DNSController.cs | 2 +- Netch/Controllers/Interface/Instance.cs | 3 ++- binaries | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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