mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-18 02:48:40 +00:00
tsnet: do not log an error on shutdown
Updates tailscale/corp#20583 Signed-off-by: Anton Tolchanov <anton@tailscale.com>
This commit is contained in:
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…
x
Reference in New Issue
Block a user