don't send greased version numbers for gQUIC

This commit is contained in:
Marten Seemann 2018-02-25 19:35:10 +08:00
parent e26c1f09de
commit 2ab2baf4bc
4 changed files with 4 additions and 9 deletions

View file

@ -21,7 +21,7 @@ func ComposeGQUICVersionNegotiation(connID protocol.ConnectionID, versions []pro
utils.Errorf("error composing version negotiation packet: %s", err.Error())
return nil
}
for _, v := range protocol.GetGreasedVersions(versions) {
for _, v := range versions {
utils.BigEndian.WriteUint32(buf, uint32(v))
}
return buf.Bytes()