(isClient bool)
| 997 | } |
| 998 | |
| 999 | func (c *Config) maxSupportedVersion(isClient bool) uint16 { |
| 1000 | supportedVersions := c.supportedVersions(isClient) |
| 1001 | if len(supportedVersions) == 0 { |
| 1002 | return 0 |
| 1003 | } |
| 1004 | return supportedVersions[0] |
| 1005 | } |
| 1006 | |
| 1007 | // supportedVersionsFromMax returns a list of supported versions derived from a |
| 1008 | // legacy maximum version value. Note that only versions supported by this |
no test coverage detected