Kaynağa Gözat

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 <[email protected]>
Brad Fitzpatrick 4 yıl önce
ebeveyn
işleme
9f6249b26d
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      ipn/policy/policy.go

+ 2 - 1
ipn/policy/policy.go

@@ -14,7 +14,8 @@ import (
 // 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 {