Move lets enc listener into go routine
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
a507a04650
commit
9088521252
1 changed files with 1 additions and 1 deletions
2
app.go
2
app.go
|
@ -827,9 +827,9 @@ func (h *Headscale) getTLSSettings() (*tls.Config, error) {
|
||||||
ReadTimeout: HTTPReadTimeout,
|
ReadTimeout: HTTPReadTimeout,
|
||||||
}
|
}
|
||||||
|
|
||||||
err := server.ListenAndServe()
|
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
|
err := server.ListenAndServe()
|
||||||
log.Fatal().
|
log.Fatal().
|
||||||
Caller().
|
Caller().
|
||||||
Err(err).
|
Err(err).
|
||||||
|
|
Loading…
Reference in a new issue