Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1f87720

Browse files
committed
fixup! feat: add debug server for tailnet coordinators
1 parent 89097f6 commit 1f87720

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tailnet/coordinator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ func (c *coordinator) ServeAgent(conn net.Conn, id uuid.UUID, name string) error
342342

343343
// Only delete the connection if it's ours. It could have been
344344
// overwritten.
345-
if idConn := c.agentSockets[id]; idConn.id == unique {
345+
if idConn, ok := c.agentSockets[id]; ok && idConn.id == unique {
346346
delete(c.agentSockets, id)
347347
delete(c.nodes, id)
348348
}

0 commit comments

Comments
 (0)