1
0
mirror of https://github.com/juanfont/headscale.git synced 2024-12-20 19:09:07 +01:00

Check for errors from the Serve() function.

This commit is contained in:
Ward Vandewege 2021-04-23 17:16:12 -04:00
parent 252c68c50a
commit 1b30874cf8

View File

@ -49,7 +49,10 @@ var serveCmd = &cobra.Command{
if err != nil {
log.Fatalf("Error initializing: %s", err)
}
h.Serve()
err = h.Serve()
if err != nil {
log.Fatalf("Error initializing: %s", err)
}
},
}