mirror of
https://github.com/daeuniverse/dae.git
synced 2025-03-10 04:47:25 +07:00
fix: init upstreams should be in goroutine
This commit is contained in:
parent
95a8c0ac42
commit
a1fb979ee5
@ -346,7 +346,7 @@ func NewControlPlane(
|
|||||||
}
|
}
|
||||||
// Init immediately to avoid DNS leaking in the very beginning because param control_plane_dns_routing will
|
// Init immediately to avoid DNS leaking in the very beginning because param control_plane_dns_routing will
|
||||||
// be set in callback.
|
// be set in callback.
|
||||||
dnsUpstream.InitUpstreams()
|
go dnsUpstream.InitUpstreams()
|
||||||
|
|
||||||
close(c.ready)
|
close(c.ready)
|
||||||
return c, nil
|
return c, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user