fix version dependent Public Header parsing in the proxy

This commit is contained in:
Marten Seemann 2017-09-10 23:26:14 +02:00
parent 2c4a17e406
commit 11a31cfdac

View file

@ -165,7 +165,7 @@ func (p *QuicProxy) runProxy() error {
atomic.AddUint64(&conn.incomingPacketCounter, 1)
r := bytes.NewReader(raw)
hdr, err := wire.ParsePublicHeader(r, protocol.PerspectiveClient, protocol.VersionWhatever)
hdr, err := wire.ParsePublicHeader(r, protocol.PerspectiveClient, p.version)
if err != nil {
return err
}