mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 04:37:36 +03:00
remove error return value from ComposeVersionNegotiation (#3410)
This commit is contained in:
parent
b9a77af8f9
commit
60bbe92194
8 changed files with 14 additions and 30 deletions
|
@ -426,12 +426,11 @@ var _ = Describe("Server", func() {
|
|||
})
|
||||
|
||||
It("ignores Version Negotiation packets", func() {
|
||||
data, err := wire.ComposeVersionNegotiation(
|
||||
data := wire.ComposeVersionNegotiation(
|
||||
protocol.ConnectionID{1, 2, 3, 4},
|
||||
protocol.ConnectionID{4, 3, 2, 1},
|
||||
[]protocol.VersionNumber{1, 2, 3},
|
||||
)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
raddr := &net.UDPAddr{IP: net.IPv4(127, 0, 0, 1), Port: 1337}
|
||||
done := make(chan struct{})
|
||||
tracer.EXPECT().DroppedPacket(raddr, logging.PacketTypeVersionNegotiation, protocol.ByteCount(len(data)), logging.PacketDropUnexpectedPacket).Do(func(net.Addr, logging.PacketType, protocol.ByteCount, logging.PacketDropReason) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue