mirror of
https://github.com/tailscale/tailscale.git
synced 2025-07-31 00:03:47 +00:00
lns get closed by serve, so they're not wanted, but shutdown still hangs
This commit is contained in:
parent
01e90c6565
commit
d9982df3fe
@ -50,7 +50,6 @@ func serveMonitor(c *Consensus, ts *tsnet.Server, listenAddr string) (*http.Serv
|
||||
mux.HandleFunc("/dial", m.handleDial)
|
||||
srv := &http.Server{Handler: mux}
|
||||
go func() {
|
||||
defer ln.Close()
|
||||
err := srv.Serve(ln)
|
||||
log.Printf("MonitorHTTP stopped serving with error: %v", err)
|
||||
}()
|
||||
|
@ -304,7 +304,6 @@ func (c *Consensus) serveCmdHttp(ts *tsnet.Server) (*http.Server, error) {
|
||||
mux := c.makeCommandMux()
|
||||
srv := &http.Server{Handler: mux}
|
||||
go func() {
|
||||
defer ln.Close()
|
||||
err := srv.Serve(ln)
|
||||
log.Printf("CmdHttp stopped serving with err: %v", err)
|
||||
}()
|
||||
|
Loading…
x
Reference in New Issue
Block a user