mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-11 13:18:53 +00:00
derp/derphttp: cleanup WebSocket connection on close
This was causing a leak in our CI! Signed-off-by: Kyle Carberry <kyle@carberry.com>
This commit is contained in:

committed by
Mihai Parparita

parent
be107f92d3
commit
3862a1e1d5
@@ -321,7 +321,7 @@ func (c *Client) connect(ctx context.Context, caller string) (client *derp.Clien
|
||||
}
|
||||
c.serverPubKey = derpClient.ServerPublicKey()
|
||||
c.client = derpClient
|
||||
c.netConn = tcpConn
|
||||
c.netConn = conn
|
||||
c.connGen++
|
||||
return c.client, c.connGen, nil
|
||||
case c.url != nil:
|
||||
|
Reference in New Issue
Block a user