Browse Source

ipn/policy: mark peerapi4 and peerapi6 as interesting services

Brad Fitzpatrick 5 years ago
parent
commit
e698973196
1 changed files with 6 additions and 1 deletions
  1. 6 1
      ipn/policy/policy.go

+ 6 - 1
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
 	}