ipn/ipnlocal: don't filter by time in FileTargets

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2021-04-08 14:02:07 -07:00
parent 6def647514
commit a9a3d3b4c1
1 changed files with 1 additions and 5 deletions

View File

@ -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)