From ec5c941512372edaa60d3cc73165b06de0737d66 Mon Sep 17 00:00:00 2001 From: Wilmer Paulino Date: Mon, 11 May 2020 15:26:36 -0700 Subject: [PATCH] wtclient: filter out inactive sessions upon adding existing/new tower --- watchtower/wtclient/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watchtower/wtclient/client.go b/watchtower/wtclient/client.go index 6827cdca..1f3c1c3c 100644 --- a/watchtower/wtclient/client.go +++ b/watchtower/wtclient/client.go @@ -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: "+