mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-19 19:38:40 +00:00
derp: optimize another per client field alignment
Updates #self Signed-off-by: James Tucker <james@tailscale.com>
This commit is contained in:
parent
ee20327496
commit
7100b6e721
@ -159,16 +159,16 @@ func (c *Client) parseServerInfo(b []byte) (*serverInfo, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type clientInfo struct {
|
type clientInfo struct {
|
||||||
// Version is the DERP protocol version that the client was built with.
|
|
||||||
// See the ProtocolVersion const.
|
|
||||||
Version int `json:"version,omitempty"`
|
|
||||||
|
|
||||||
// MeshKey optionally specifies a pre-shared key used by
|
// MeshKey optionally specifies a pre-shared key used by
|
||||||
// trusted clients. It's required to subscribe to the
|
// trusted clients. It's required to subscribe to the
|
||||||
// connection list & forward packets. It's empty for regular
|
// connection list & forward packets. It's empty for regular
|
||||||
// users.
|
// users.
|
||||||
MeshKey string `json:"meshKey,omitempty"`
|
MeshKey string `json:"meshKey,omitempty"`
|
||||||
|
|
||||||
|
// Version is the DERP protocol version that the client was built with.
|
||||||
|
// See the ProtocolVersion const.
|
||||||
|
Version int `json:"version,omitempty"`
|
||||||
|
|
||||||
// CanAckPings is whether the client declares it's able to ack
|
// CanAckPings is whether the client declares it's able to ack
|
||||||
// pings.
|
// pings.
|
||||||
CanAckPings bool
|
CanAckPings bool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user