detect unsupported versions when parsing version negotiation packet

This commit is contained in:
Marten Seemann
2016-12-02 15:19:19 +07:00
parent 5b97f0550c
commit d37380b7a5
3 changed files with 47 additions and 9 deletions

View File

@@ -15,7 +15,8 @@ const (
Version34 VersionNumber = 34 + iota
Version35
Version36
VersionWhatever = 0 // for when the version doesn't matter
VersionWhatever = 0 // for when the version doesn't matter
VersionUnsupported = -1
)
// SupportedVersions lists the versions that the server supports