From d73bb5fd293c877744d4d2164d9be69cc67db3eb Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Fri, 9 Nov 2018 10:06:50 -0700 Subject: [PATCH] Fix issue in which two remotedialers are created --- build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.go b/build.go index a4f28787..f015b6f1 100644 --- a/build.go +++ b/build.go @@ -105,7 +105,7 @@ func (c *Config) Build(ctx context.Context, opts *Options) (context.Context, *Se } func (c *Config) apiServer(ctx context.Context, r *Runtime) error { - if c.K3s.RemoteDialerAuthorizer != nil { + if c.K3s.RemoteDialerAuthorizer != nil && r.K3sTunnelServer == nil { r.K3sTunnelServer = remotedialer.New(c.K3s.RemoteDialerAuthorizer, remotedialer.DefaultErrorWriter) }