From 7100b6e72162d532efd10021e47b710fc10c9b64 Mon Sep 17 00:00:00 2001 From: James Tucker Date: Fri, 12 Jan 2024 12:46:23 -0800 Subject: [PATCH] derp: optimize another per client field alignment Updates #self Signed-off-by: James Tucker --- derp/derp_client.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/derp/derp_client.go b/derp/derp_client.go index 7ad98cfe8..293e86835 100644 --- a/derp/derp_client.go +++ b/derp/derp_client.go @@ -159,16 +159,16 @@ func (c *Client) parseServerInfo(b []byte) (*serverInfo, error) { } 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 // trusted clients. It's required to subscribe to the // connection list & forward packets. It's empty for regular // users. 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 // pings. CanAckPings bool