use different source and destination connection IDs

This commit is contained in:
Marten Seemann
2018-04-18 17:53:41 +09:00
parent dd5d376d94
commit fae32101a0
12 changed files with 433 additions and 267 deletions

View File

@@ -308,10 +308,6 @@ func (s *server) handlePacket(pconn net.PacketConn, remoteAddr net.Addr, packet
hdr.Raw = packet[:len(packet)-r.Len()]
packetData := packet[len(packet)-r.Len():]
if hdr.IsLongHeader && !hdr.DestConnectionID.Equal(hdr.SrcConnectionID) {
return errors.New("receiving packets with different destination and source connection IDs not supported")
}
if hdr.Type == protocol.PacketTypeInitial {
if s.supportsTLS {
go s.serverTLS.HandleInitial(remoteAddr, hdr, packetData)