diff options
author | Matthew Holt <[email protected]> | 2018-05-07 17:04:39 -0600 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2018-05-07 17:04:39 -0600 |
commit | ef48e17e79ad866dd31777ef5961fd98f841bae0 (patch) | |
tree | 308452fa6eef74da8110694280b82b2a0222a7d2 | |
parent | fe03c1aefa856766f9285d588d0034349444986b (diff) | |
download | caddy-ef48e17e79ad866dd31777ef5961fd98f841bae0.tar.gz caddy-ef48e17e79ad866dd31777ef5961fd98f841bae0.zip |
caddytls: Fix tests
-rw-r--r-- | caddytls/handshake.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/caddytls/handshake.go b/caddytls/handshake.go index ad190e338..8b2639845 100644 --- a/caddytls/handshake.go +++ b/caddytls/handshake.go @@ -99,7 +99,7 @@ func (cg configGroup) GetConfigForClient(clientHello *tls.ClientHelloInfo) (*tls // // This method is safe for use as a tls.Config.GetCertificate callback. func (cfg *Config) GetCertificate(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error) { - if ClientHelloTelemetry { + if ClientHelloTelemetry && len(clientHello.SupportedVersions) > 0 { // If no other plugin (such as the HTTP server type) is implementing ClientHello telemetry, we do it. // NOTE: The values in the Go standard lib's ClientHelloInfo aren't guaranteed to be in order. info := ClientHelloInfo{ |