fix: expired peer missing in peer list

This commit is contained in:
Johan Siebens
2024-02-10 15:36:28 +01:00
parent 0eef9faf86
commit 41b64eed71
4 changed files with 44 additions and 3 deletions
-3
View File
@@ -89,9 +89,6 @@ func (h *PollNetMapper) CreateMapResponse(ctx context.Context, delta bool) (*Map
syncedUserIDs := map[tailcfg.UserID]bool{user.ID: true}
for _, peer := range candidatePeers {
if peer.IsExpired() {
continue
}
if policies.IsValidPeer(m, &peer) || policies.IsValidPeer(&peer, m) {
isConnected := h.sessionManager.HasSession(peer.TailnetID, peer.ID)