From e6989731966c9274407a44e9c8b723a1df5ecaf9 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 1 Apr 2021 11:57:24 -0700 Subject: [PATCH] ipn/policy: mark peerapi4 and peerapi6 as interesting services --- ipn/policy/policy.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ipn/policy/policy.go b/ipn/policy/policy.go index 02232f2f7..bda0e68c4 100644 --- a/ipn/policy/policy.go +++ b/ipn/policy/policy.go @@ -6,12 +6,17 @@ // shared between the node client & control server. package policy -import "tailscale.com/tailcfg" +import ( + "tailscale.com/tailcfg" +) // IsInterestingService reports whether service s on the given operating // system (a version.OS value) is an interesting enough port to report // to our peer nodes for discovery purposes. func IsInterestingService(s tailcfg.Service, os string) bool { + if s.Proto == "peerapi4" || s.Proto == "peerapi6" { + return true + } if s.Proto != tailcfg.TCP { return false }