Move lets enc listener into go routine

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby 2022-09-26 11:33:48 +02:00
parent a507a04650
commit 9088521252
No known key found for this signature in database

2
app.go
View file

@ -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).