summaryrefslogtreecommitdiffhomepage
path: root/ipn/ipnlocal/taildrop.go
diff options
context:
space:
mode:
Diffstat (limited to 'ipn/ipnlocal/taildrop.go')
-rw-r--r--ipn/ipnlocal/taildrop.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipn/ipnlocal/taildrop.go b/ipn/ipnlocal/taildrop.go
index 17ca40926..d8113d219 100644
--- a/ipn/ipnlocal/taildrop.go
+++ b/ipn/ipnlocal/taildrop.go
@@ -194,8 +194,8 @@ func (b *LocalBackend) FileTargets() ([]*apitype.FileTarget, error) {
if !p.Valid() || p.Hostinfo().OS() == "tvOS" {
return false
}
- if self != p.User() {
- return false
+ if self == p.User() {
+ return true
}
if p.Addresses().Len() != 0 && cn.PeerHasCap(p.Addresses().At(0).Addr(), tailcfg.PeerCapabilityFileSharingTarget) {
// Explicitly noted in the netmap ACL caps as a target.