|
|
|
@ -37,6 +37,7 @@ type CapabilityVersion int
|
|
|
|
|
// CurrentCapabilityVersion is the current capability version of the codebase.
|
|
|
|
|
//
|
|
|
|
|
// History of versions:
|
|
|
|
|
//
|
|
|
|
|
// 3: implicit compression, keep-alives
|
|
|
|
|
// 4: opt-in keep-alives via KeepAlive field, opt-in compression via Compress
|
|
|
|
|
// 5: 2020-10-19, implies IncludeIPv6, delta Peers/UserProfiles, supports MagicDNS
|
|
|
|
@ -746,6 +747,7 @@ func (st SignatureType) String() string {
|
|
|
|
|
// RegisterRequest is sent by a client to register the key for a node.
|
|
|
|
|
// It is encoded to JSON, encrypted with golang.org/x/crypto/nacl/box,
|
|
|
|
|
// using the local machine key, and sent to:
|
|
|
|
|
//
|
|
|
|
|
// https://login.tailscale.com/machine/<mkey hex>
|
|
|
|
|
type RegisterRequest struct {
|
|
|
|
|
_ structs.Incomparable
|
|
|
|
@ -864,6 +866,7 @@ type Endpoint struct {
|
|
|
|
|
//
|
|
|
|
|
// The request is encoded to JSON, encrypted with golang.org/x/crypto/nacl/box,
|
|
|
|
|
// using the local machine key, and sent to:
|
|
|
|
|
//
|
|
|
|
|
// https://login.tailscale.com/machine/<mkey hex>/map
|
|
|
|
|
type MapRequest struct {
|
|
|
|
|
// Version is incremented whenever the client code changes enough that
|
|
|
|
@ -1514,6 +1517,7 @@ const (
|
|
|
|
|
//
|
|
|
|
|
// The request is encoded to JSON, encrypted with golang.org/x/crypto/nacl/box,
|
|
|
|
|
// using the local machine key, and sent to:
|
|
|
|
|
//
|
|
|
|
|
// https://login.tailscale.com/machine/<mkey hex>/set-dns
|
|
|
|
|
type SetDNSRequest struct {
|
|
|
|
|
// Version is the client's capabilities
|
|
|
|
|