mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-07 06:07:36 +03:00
implement version-dependent parsing of the Public Header
This commit is contained in:
parent
1a8a012019
commit
dd0daaaf1e
17 changed files with 311 additions and 124 deletions
|
@ -219,7 +219,7 @@ func (c *client) handlePacket(remoteAddr net.Addr, packet []byte) {
|
|||
rcvTime := time.Now()
|
||||
|
||||
r := bytes.NewReader(packet)
|
||||
hdr, err := ParsePublicHeader(r, protocol.PerspectiveServer)
|
||||
hdr, err := ParsePublicHeader(r, protocol.PerspectiveServer, c.version)
|
||||
if err != nil {
|
||||
utils.Errorf("error parsing packet from %s: %s", remoteAddr.String(), err.Error())
|
||||
// drop this packet if we can't parse the Public Header
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue