(isClient bool)
| 1225 | } |
| 1226 | |
| 1227 | func (c *Config) maxSupportedVersion(isClient bool) uint16 { |
| 1228 | supportedVersions := c.supportedVersions(isClient) |
| 1229 | if len(supportedVersions) == 0 { |
| 1230 | return 0 |
| 1231 | } |
| 1232 | return supportedVersions[0] |
| 1233 | } |
| 1234 | |
| 1235 | // supportedVersionsFromMax returns a list of supported versions derived from a |
| 1236 | // legacy maximum version value. Note that only versions supported by this |
no test coverage detected