tsnet: do not log an error on shutdown

Updates tailscale/corp#20583

Signed-off-by: Anton Tolchanov <anton@tailscale.com>
pull/12631/head
Anton Tolchanov 5 months ago committed by Anton Tolchanov
parent 18939df0a7
commit 23c5870bd3

@ -645,7 +645,7 @@ func (s *Server) start() (reterr error) {
s.localAPIServer = &http.Server{Handler: lah}
s.lb.ConfigureWebClient(s.localClient)
go func() {
if err := s.localAPIServer.Serve(lal); err != nil {
if err := s.localAPIServer.Serve(lal); err != nil && err != http.ErrServerClosed {
s.logf("localapi serve error: %v", err)
}
}()

Loading…
Cancel
Save