ipn/ipnserver: propagate http.Serve error

This ensures that we capture error returned by `Serve` and exit with a
non-zero exit code if it happens.

Signed-off-by: Anton Tolchanov <anton@tailscale.com>
pull/6756/head
Anton Tolchanov 2022-12-15 13:18:29 +00:00 committed by Anton Tolchanov
parent 8171eb600c
commit 53c4892841
1 changed files with 1 additions and 0 deletions

View File

@ -516,6 +516,7 @@ func (s *Server) Run(ctx context.Context, ln net.Listener) error {
if err := ctx.Err(); err != nil {
return err
}
return err
}
return nil
}