From 411a50c8fa70088922279599cd312ef6778afcd6 Mon Sep 17 00:00:00 2001 From: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Sat, 1 May 2021 22:20:33 +0800 Subject: [PATCH] Fix: multi FakeDNS Close method (#956) --- app/dns/fakedns/fake.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/dns/fakedns/fake.go b/app/dns/fakedns/fake.go index e74ec76bd..f7b85cfae 100644 --- a/app/dns/fakedns/fake.go +++ b/app/dns/fakedns/fake.go @@ -198,8 +198,7 @@ func (h *HolderMulti) Start() error { func (h *HolderMulti) Close() error { for _, v := range h.holders { - err := v.Start() - if err != nil { + if err := v.Close(); err != nil { return newError("Cannot close all fake dns pools").Base(err) } }