From a1fb979ee5259f2d12d70fba71f14b0c8e115a66 Mon Sep 17 00:00:00 2001 From: mzz2017 <2017@duck.com> Date: Mon, 27 Feb 2023 16:24:16 +0800 Subject: [PATCH] fix: init upstreams should be in goroutine --- control/control_plane.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/control_plane.go b/control/control_plane.go index 0c717dd..20fcb9e 100644 --- a/control/control_plane.go +++ b/control/control_plane.go @@ -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