diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2019-05-14 14:14:05 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2019-05-14 14:14:05 -0600 |
commit | f9d93ead4ef6e099ba7e00318dce6509b0f1eda4 (patch) | |
tree | b14b418475d25c1aa4d13cb53b5e162054570483 /modules/caddytls | |
parent | 8ae0d6a509fd1b871457cf742369af04346933a8 (diff) |
Rename and export some types, other minor changes
Diffstat (limited to 'modules/caddytls')
-rw-r--r-- | modules/caddytls/connpolicy.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/caddytls/connpolicy.go b/modules/caddytls/connpolicy.go index a085fa3..bdbd79f 100644 --- a/modules/caddytls/connpolicy.go +++ b/modules/caddytls/connpolicy.go @@ -85,6 +85,9 @@ func (cp *ConnectionPolicy) buildStandardTLSConfig(handle caddy2.Handle) error { NextProtos: cp.ALPN, PreferServerCipherSuites: true, GetCertificate: func(hello *tls.ClientHelloInfo) (*tls.Certificate, error) { + // TODO: Must fix https://github.com/mholt/caddy/issues/2588 + // (allow customizing the selection of a very specific certificate + // based on the ClientHelloInfo) cfgTpl, err := tlsApp.getConfigForName(hello.ServerName) if err != nil { return nil, fmt.Errorf("getting config for name %s: %v", hello.ServerName, err) |