Skip to content

Commit

Permalink
Move lets enc listener into go routine
Browse files Browse the repository at this point in the history
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
  • Loading branch information
kradalby committed Sep 26, 2022
1 parent a507a04 commit 9088521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.go
Expand Up @@ -827,9 +827,9 @@ func (h *Headscale) getTLSSettings() (*tls.Config, error) {
ReadTimeout: HTTPReadTimeout,
}

err := server.ListenAndServe()

go func() {
err := server.ListenAndServe()
log.Fatal().
Caller().
Err(err).
Expand Down

0 comments on commit 9088521

Please sign in to comment.