ipn/ipnlocal: don't filter by time in FileTargets
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
6def647514
commit
a9a3d3b4c1
|
@ -2060,12 +2060,8 @@ func (b *LocalBackend) FileTargets() ([]*FileTarget, error) {
|
||||||
if b.state != ipn.Running || nm == nil {
|
if b.state != ipn.Running || nm == nil {
|
||||||
return nil, errors.New("not connected")
|
return nil, errors.New("not connected")
|
||||||
}
|
}
|
||||||
now := time.Now()
|
|
||||||
for _, p := range nm.Peers {
|
for _, p := range nm.Peers {
|
||||||
if p.User != nm.User || p.LastSeen == nil {
|
if p.User != nm.User {
|
||||||
continue
|
|
||||||
}
|
|
||||||
if t := *p.LastSeen; now.Sub(t) > 30*time.Minute {
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
peerAPI := peerAPIBase(b.netMap, p)
|
peerAPI := peerAPIBase(b.netMap, p)
|
||||||
|
|
Loading…
Reference in New Issue