Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiraux committed Mar 31, 2020
1 parent aa881ba commit 23a5ff4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ietf_quic_hosts.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
quic.rocks:4433 /index.html 4433 hq
quic.rocks:4433 /index.html 4433 h3
nghttp2.org:4433 /index.html 4433 h3
quant.eggert.org:4433 /index.html 4433 hq
h2o.examp1e.net:443 /notfound 443 h3
Expand Down
2 changes: 1 addition & 1 deletion scenarii/multi_packet_client_hello.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (s *MultiPacketClientHello) Run(conn *qt.Connection, trace *qt.Trace, prefe
originalLen := len(originalPacket.Encode(originalPacket.EncodePayload()))
f := originalPacket.GetFirst(qt.CryptoType).(*qt.CryptoFrame)
secondPacket := qt.NewInitialPacket(conn)
secondPacket.AddFrame(qt.CryptoFrame{Offset: f.Length / 2, Length: f.Length - (f.Length / 2), CryptoData:f.CryptoData[f.Length/2:]})
secondPacket.AddFrame(&qt.CryptoFrame{Offset: f.Length / 2, Length: f.Length - (f.Length / 2), CryptoData:f.CryptoData[f.Length/2:]})
secondPacket.PadTo(originalLen)
f.CryptoData = f.CryptoData[:f.Length/2]
f.Length /= 2
Expand Down

0 comments on commit 23a5ff4

Please sign in to comment.