change the version number for the development version

This now uses the highest version number reserved for quic-go in
https://github.com/quicwg/base-drafts/wiki/QUIC-Versions.
This commit is contained in:
Marten Seemann
2019-01-10 22:06:29 +07:00
parent 6fbe8d563e
commit 3f80870922
2 changed files with 1 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ const (
// The version numbers, making grepping easier
const (
VersionTLS VersionNumber = 101
VersionTLS VersionNumber = 0x51474fff
VersionWhatever VersionNumber = 1 // for when the version doesn't matter
VersionUnknown VersionNumber = math.MaxUint32
)

View File

@@ -33,10 +33,6 @@ var _ = Describe("Version", func() {
Expect(VersionNumber(0x01234567).String()).To(Equal("0x1234567"))
})
It("has the right representation for the H2 Alt-Svc tag", func() {
Expect(VersionTLS.ToAltSvc()).To(Equal("101"))
})
It("recognizes supported versions", func() {
Expect(IsSupportedVersion(SupportedVersions, 0)).To(BeFalse())
Expect(IsSupportedVersion(SupportedVersions, SupportedVersions[0])).To(BeTrue())