diff options
| -rw-r--r-- | ipn/policy/policy.go | 2 | ||||
| -rw-r--r-- | tailcfg/tailcfg.go | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/ipn/policy/policy.go b/ipn/policy/policy.go index 8703b71ae..bf2aa84d3 100644 --- a/ipn/policy/policy.go +++ b/ipn/policy/policy.go @@ -14,6 +14,8 @@ import ( // to our peer nodes for discovery purposes. func IsInterestingService(s tailcfg.Service, os string) bool { switch s.Proto { + // Avoid further extension of this approach to advertising peer services. + // TODO(bradfitz,raggi): point to preferred approach case tailcfg.PeerAPI4, tailcfg.PeerAPI6, tailcfg.PeerAPIDNS, tailcfg.AppConnector: return true } diff --git a/tailcfg/tailcfg.go b/tailcfg/tailcfg.go index 54f3b24f7..f1eb5f8b6 100644 --- a/tailcfg/tailcfg.go +++ b/tailcfg/tailcfg.go @@ -653,6 +653,9 @@ type Service struct { // * "app-connector": the local app-connector service is // available. For this service, the Port number is // really the version number of the service. + // + // Avoid further extension of this approach to advertising peer services. + // TODO(bradfitz,raggi): point to preferred approach Proto ServiceProto // Port is the port number. |
