From a9a3d3b4c13bd2a644ac04b180fcae89bec3180a Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 8 Apr 2021 14:02:07 -0700 Subject: [PATCH] ipn/ipnlocal: don't filter by time in FileTargets Signed-off-by: Brad Fitzpatrick --- ipn/ipnlocal/local.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ipn/ipnlocal/local.go b/ipn/ipnlocal/local.go index 08d22e730..e6df1269f 100644 --- a/ipn/ipnlocal/local.go +++ b/ipn/ipnlocal/local.go @@ -2060,12 +2060,8 @@ func (b *LocalBackend) FileTargets() ([]*FileTarget, error) { if b.state != ipn.Running || nm == nil { return nil, errors.New("not connected") } - now := time.Now() for _, p := range nm.Peers { - if p.User != nm.User || p.LastSeen == nil { - continue - } - if t := *p.LastSeen; now.Sub(t) > 30*time.Minute { + if p.User != nm.User { continue } peerAPI := peerAPIBase(b.netMap, p)