MCPcopy
hub / github.com/XTLS/REALITY / maxSupportedVersion

Method maxSupportedVersion

common.go:1227–1233  ·  view source on GitHub ↗
(isClient bool)

Source from the content-addressed store, hash-verified

1225}
1226
1227func (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

Callers 4

clientHandshakeMethod · 0.80
processClientHelloMethod · 0.80
processClientHelloMethod · 0.80
pickCipherSuiteMethod · 0.80

Calls 1

supportedVersionsMethod · 0.95

Tested by

no test coverage detected