mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-27 17:09:58 +00:00
AUTH-2159: Moves shutdownC close into error handling
AUTH-2161: Lowers size of preamble length AUTH-2160: Fixes url parsing logic
This commit is contained in:
@@ -407,9 +407,9 @@ func StartServer(c *cli.Context, version string, shutdownC, graceShutdownC chan
|
||||
defer wg.Done()
|
||||
if err = server.Start(); err != nil && err != ssh.ErrServerClosed {
|
||||
logger.WithError(err).Error("SSH server error")
|
||||
// TODO: remove when declarative tunnels are implemented.
|
||||
close(shutdownC)
|
||||
}
|
||||
// TODO: remove when declarative tunnels are implemented.
|
||||
close(shutdownC)
|
||||
}()
|
||||
c.Set("url", "ssh://"+localServerAddress)
|
||||
}
|
||||
|
Reference in New Issue
Block a user