1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 01:57:12 -05:00

Fix: multi FakeDNS Close method (#956)

This commit is contained in:
Loyalsoldier 2021-05-01 22:20:33 +08:00 committed by GitHub
parent 0d4479a72a
commit 411a50c8fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,8 +198,7 @@ func (h *HolderMulti) Start() error {
func (h *HolderMulti) Close() error { func (h *HolderMulti) Close() error {
for _, v := range h.holders { for _, v := range h.holders {
err := v.Start() if err := v.Close(); err != nil {
if err != nil {
return newError("Cannot close all fake dns pools").Base(err) return newError("Cannot close all fake dns pools").Base(err)
} }
} }