Move protocol version to a const

This commit is contained in:
2022-01-26 10:49:23 +10:30
parent 3baccaccac
commit 58a078b9f9
3 changed files with 5 additions and 3 deletions

View File

@@ -183,7 +183,7 @@ func (c *Client) connectToServer(op secure.OperationTypeEnum, enc *gob.Encoder,
startPacket := secure.PacketStartRequest{
OperationType: op,
ClientName: "",
ProtocolVersion: "1.1",
ProtocolVersion: ProtocolVersion,
AuthToken: c.authToken,
}
err := enc.Encode(startPacket)