Update
This commit is contained in:
23
vendor/tailscale.com/ipn/ipnstate/ipnstate.go
generated
vendored
23
vendor/tailscale.com/ipn/ipnstate/ipnstate.go
generated
vendored
@@ -89,6 +89,7 @@ type Status struct {
|
||||
|
||||
// TKAKey describes a key trusted by network lock.
|
||||
type TKAKey struct {
|
||||
Kind string
|
||||
Key key.NLPublic
|
||||
Metadata map[string]string
|
||||
Votes uint
|
||||
@@ -251,9 +252,10 @@ type PeerStatus struct {
|
||||
PrimaryRoutes *views.Slice[netip.Prefix] `json:",omitempty"`
|
||||
|
||||
// Endpoints:
|
||||
Addrs []string
|
||||
CurAddr string // one of Addrs, or unique if roaming
|
||||
Relay string // DERP region
|
||||
Addrs []string
|
||||
CurAddr string // one of Addrs, or unique if roaming
|
||||
Relay string // DERP region
|
||||
PeerRelay string // peer relay address (ip:port:vni)
|
||||
|
||||
RxBytes int64
|
||||
TxBytes int64
|
||||
@@ -451,6 +453,9 @@ func (sb *StatusBuilder) AddPeer(peer key.NodePublic, st *PeerStatus) {
|
||||
if v := st.Relay; v != "" {
|
||||
e.Relay = v
|
||||
}
|
||||
if v := st.PeerRelay; v != "" {
|
||||
e.PeerRelay = v
|
||||
}
|
||||
if v := st.UserID; v != 0 {
|
||||
e.UserID = v
|
||||
}
|
||||
@@ -697,10 +702,17 @@ type PingResult struct {
|
||||
Err string
|
||||
LatencySeconds float64
|
||||
|
||||
// Endpoint is the ip:port if direct UDP was used.
|
||||
// It is not currently set for TSMP pings.
|
||||
// Endpoint is a string of the form "{ip}:{port}" if direct UDP was used. It
|
||||
// is not currently set for TSMP.
|
||||
Endpoint string
|
||||
|
||||
// PeerRelay is a string of the form "{ip}:{port}:vni:{vni}" if a peer
|
||||
// relay was used. It is not currently set for TSMP. Note that this field
|
||||
// is not omitted during JSON encoding if it contains a zero value. This is
|
||||
// done for consistency with the Endpoint field; this structure is exposed
|
||||
// externally via localAPI, so we want to maintain the existing convention.
|
||||
PeerRelay string
|
||||
|
||||
// DERPRegionID is non-zero DERP region ID if DERP was used.
|
||||
// It is not currently set for TSMP pings.
|
||||
DERPRegionID int
|
||||
@@ -735,6 +747,7 @@ func (pr *PingResult) ToPingResponse(pingType tailcfg.PingType) *tailcfg.PingRes
|
||||
Err: pr.Err,
|
||||
LatencySeconds: pr.LatencySeconds,
|
||||
Endpoint: pr.Endpoint,
|
||||
PeerRelay: pr.PeerRelay,
|
||||
DERPRegionID: pr.DERPRegionID,
|
||||
DERPRegionCode: pr.DERPRegionCode,
|
||||
PeerAPIPort: pr.PeerAPIPort,
|
||||
|
||||
Reference in New Issue
Block a user