tailcfg, control/controlclient: clarify more, enforce PingRequest.URL is unique

Updates #2079

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2021-06-15 12:28:34 -07:00
parent c61d777705
commit 333e9e75d4
2 changed files with 22 additions and 1 deletions

View File

@@ -880,6 +880,9 @@ type DNSConfig struct {
type PingRequest struct {
// URL is the URL to send a HEAD request to.
// It will be a unique URL each time. No auth headers are necessary.
//
// If the client sees multiple PingRequests with the same URL,
// subsequent ones should be ignored.
URL string
// Log is whether to log about this ping in the success case.