|
|
@ -461,16 +461,17 @@ type RegisterResponse struct {
|
|
|
|
// using the local machine key, and sent to:
|
|
|
|
// using the local machine key, and sent to:
|
|
|
|
// https://login.tailscale.com/machine/<mkey hex>/map
|
|
|
|
// https://login.tailscale.com/machine/<mkey hex>/map
|
|
|
|
type MapRequest struct {
|
|
|
|
type MapRequest struct {
|
|
|
|
Version int // current version is 4
|
|
|
|
Version int // current version is 4
|
|
|
|
Compress string // "zstd" or "" (no compression)
|
|
|
|
Compress string // "zstd" or "" (no compression)
|
|
|
|
KeepAlive bool // whether server should send keep-alives back to us
|
|
|
|
KeepAlive bool // whether server should send keep-alives back to us
|
|
|
|
NodeKey NodeKey
|
|
|
|
NodeKey NodeKey
|
|
|
|
DiscoKey DiscoKey
|
|
|
|
DiscoKey DiscoKey
|
|
|
|
Endpoints []string // caller's endpoints (IPv4 or IPv6)
|
|
|
|
Endpoints []string // caller's endpoints (IPv4 or IPv6)
|
|
|
|
IncludeIPv6 bool // include IPv6 endpoints in returned Node Endpoints
|
|
|
|
IncludeIPv6 bool // include IPv6 endpoints in returned Node Endpoints
|
|
|
|
DeltaPeers bool // whether the 2nd+ network map in response should be deltas, using PeersChanged, PeersRemoved
|
|
|
|
IncludeIPv6Overlay bool // include IPv6 Addresses and AllowedIPs in returned Nodes.
|
|
|
|
Stream bool // if true, multiple MapResponse objects are returned
|
|
|
|
DeltaPeers bool // whether the 2nd+ network map in response should be deltas, using PeersChanged, PeersRemoved
|
|
|
|
Hostinfo *Hostinfo
|
|
|
|
Stream bool // if true, multiple MapResponse objects are returned
|
|
|
|
|
|
|
|
Hostinfo *Hostinfo
|
|
|
|
|
|
|
|
|
|
|
|
// ReadOnly is whether the client just wants to fetch the
|
|
|
|
// ReadOnly is whether the client just wants to fetch the
|
|
|
|
// MapResponse, without updating their Endpoints. The
|
|
|
|
// MapResponse, without updating their Endpoints. The
|
|
|
|