mirror of
https://github.com/juanfont/headscale.git
synced 2025-01-08 00:11:42 +01:00
Move lets enc listener into go routine
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
a507a04650
commit
9088521252
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 New Issue
Block a user