forked from quic-go/quic-go
Merge pull request #815 from lucas-clemente/fix-proxy
fix Public Header parsing in the proxy
This commit is contained in:
@@ -165,7 +165,7 @@ func (p *QuicProxy) runProxy() error {
|
|||||||
atomic.AddUint64(&conn.incomingPacketCounter, 1)
|
atomic.AddUint64(&conn.incomingPacketCounter, 1)
|
||||||
|
|
||||||
r := bytes.NewReader(raw)
|
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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user