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:
parent
0d4479a72a
commit
411a50c8fa
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user