Merge pull request #909 from lucas-clemente/handle-ietf-style-vnps

handle IETF draft style Version Negotiation Packets
This commit is contained in:
Marten Seemann
2017-10-30 19:44:34 +07:00
committed by GitHub
2 changed files with 17 additions and 13 deletions

View File

@@ -246,6 +246,7 @@ var _ = Describe("Client", func() {
testErr := errors.New("late handshake error")
packetConn.dataToRead = acceptClientVersionPacket(cl.connectionID)
go func() {
defer GinkgoRecover()
_, dialErr := Dial(packetConn, addr, "quic.clemente.io:1337", nil, config)
Expect(dialErr).To(MatchError(testErr))
close(done)