ipn/policy: mark peerapi4 and peerapi6 as interesting services

pull/1639/head
Brad Fitzpatrick 3 years ago
parent 39b9ab3522
commit e698973196

@ -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
}

Loading…
Cancel
Save