diff --git a/public_header.go b/public_header.go index 3907773e..1da588e0 100644 --- a/public_header.go +++ b/public_header.go @@ -30,7 +30,7 @@ type PublicHeader struct { // WritePublicHeader writes a public header func (h *PublicHeader) WritePublicHeader(b *bytes.Buffer) error { - publicFlagByte := uint8(0x30) + publicFlagByte := uint8(0x34) if h.VersionFlag && h.ResetFlag { return errResetAndVersionFlagSet } diff --git a/public_header_test.go b/public_header_test.go index 05fe7f23..86d7b150 100644 --- a/public_header_test.go +++ b/public_header_test.go @@ -86,7 +86,7 @@ var _ = Describe("Public Header", func() { PacketNumber: 2, } publicHeader.WritePublicHeader(b) - Expect(b.Bytes()).To(Equal([]byte{0x38, 0xf6, 0x19, 0x86, 0x66, 0x9b, 0x9f, 0xfa, 0x4c, 2, 0, 0, 0, 0, 0})) + Expect(b.Bytes()).To(Equal([]byte{0x3c, 0xf6, 0x19, 0x86, 0x66, 0x9b, 0x9f, 0xfa, 0x4c, 2, 0, 0, 0, 0, 0})) }) It("sets the Version Flag", func() { diff --git a/server_test.go b/server_test.go index 5b54379b..5ebd521a 100644 --- a/server_test.go +++ b/server_test.go @@ -47,7 +47,7 @@ var _ = Describe("Server", func() { It("composes version negotiation packets", func() { expected := append( - []byte{0x39, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0}, + []byte{0x3d, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0}, protocol.SupportedVersionsAsTags..., ) Expect(composeVersionNegotiation(1)).To(Equal(expected))