only set the destination connection ID for the Public Header

This commit is contained in:
Marten Seemann 2018-06-24 16:47:59 +07:00
parent c9a9b57030
commit fc57bf6c35
12 changed files with 31 additions and 62 deletions

View file

@ -36,7 +36,6 @@ var _ = Describe("Client", func() {
b := &bytes.Buffer{}
err := (&wire.Header{
DestConnectionID: connID,
SrcConnectionID: connID,
PacketNumber: 1,
PacketNumberLen: 1,
}).Write(b, protocol.PerspectiveServer, protocol.VersionWhatever)
@ -755,7 +754,6 @@ var _ = Describe("Client", func() {
PacketNumber: 1,
PacketNumberLen: protocol.PacketNumberLen2,
DestConnectionID: connID,
SrcConnectionID: connID,
}
b := &bytes.Buffer{}
err := ph.Write(b, protocol.PerspectiveServer, cl.version)