mirror of
https://github.com/daeuniverse/dae.git
synced 2025-03-09 20:30:08 +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
|
||||
// be set in callback.
|
||||
dnsUpstream.InitUpstreams()
|
||||
go dnsUpstream.InitUpstreams()
|
||||
|
||||
close(c.ready)
|
||||
return c, nil
|
||||
|
Loading…
Reference in New Issue
Block a user