From 9f6249b26d2faf1289675fac0d9afaaed63b64e5 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Fri, 3 Dec 2021 12:31:16 -0800 Subject: [PATCH] ipn/policy: treat DNS service as interesting so it's not filtered out The control plane is currently still eating it. Updates #1713 Change-Id: I66a0698599d6794ab1302f9585bf29e38553c884 Signed-off-by: Brad Fitzpatrick --- ipn/policy/policy.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ipn/policy/policy.go b/ipn/policy/policy.go index 27a4871d8..2308b9516 100644 --- a/ipn/policy/policy.go +++ b/ipn/policy/policy.go @@ -14,7 +14,8 @@ // 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" { + switch s.Proto { + case tailcfg.PeerAPI4, tailcfg.PeerAPI6, tailcfg.PeerAPIDNS: return true } if s.Proto != tailcfg.TCP {