wtclient: filter out inactive sessions upon adding existing/new tower

This commit is contained in:
Wilmer Paulino
2020-05-11 15:26:36 -07:00
parent 75c2ebd794
commit ec5c941512

View File

@@ -1061,7 +1061,7 @@ func (c *TowerClient) handleNewTower(msg *newTowerMsg) error {
// Include all of its corresponding sessions to our set of candidates.
sessions, err := getClientSessions(
c.cfg.DB, c.cfg.SecretKeyRing, &tower.ID, nil,
c.cfg.DB, c.cfg.SecretKeyRing, &tower.ID, activeSessionFilter,
)
if err != nil {
return fmt.Errorf("unable to determine sessions for tower %x: "+