diff --git a/cmd/cloudflared/tunnel/cmd.go b/cmd/cloudflared/tunnel/cmd.go index d1f71825..01d09a5b 100644 --- a/cmd/cloudflared/tunnel/cmd.go +++ b/cmd/cloudflared/tunnel/cmd.go @@ -377,6 +377,12 @@ func StartServer( tunnelConfig.HAConnections, ) tunnelInfo.LaunchUI(ctx, log, transportLog, uiCh) + } else { + go func() { + for range uiCh { + // Consume UI events into a noop + } + }() } return waitToShutdown(&wg, errC, shutdownC, graceShutdownC, c.Duration("grace-period"), log)