diff options
author | Will Norris <[email protected]> | 2024-05-18 19:47:46 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2024-05-18 22:47:46 -0400 |
commit | 1fc151faec8421bf77c6db8b21880e7bec0d2b02 (patch) | |
tree | 636efbaa3ffa3917a4c9b9271155a95501dd75eb | |
parent | 9ba999141b5ca5adaf45893992f4889629f77a9d (diff) | |
download | caddy-1fc151faec8421bf77c6db8b21880e7bec0d2b02.tar.gz caddy-1fc151faec8421bf77c6db8b21880e7bec0d2b02.zip |
caddytls: remove ClientHelloSNICtxKey (#6326)
-rw-r--r-- | modules/caddytls/certmanagers.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/modules/caddytls/certmanagers.go b/modules/caddytls/certmanagers.go index b383a03f3..f65a78b09 100644 --- a/modules/caddytls/certmanagers.go +++ b/modules/caddytls/certmanagers.go @@ -22,9 +22,6 @@ func init() { caddy.RegisterModule(HTTPCertGetter{}) } -// For referencing the requested SNI server name. -const ClientHelloSNICtxKey caddy.CtxKey = "client_hello_sni" - // Tailscale is a module that can get certificates from the local Tailscale process. type Tailscale struct { logger *zap.Logger @@ -44,7 +41,6 @@ func (ts *Tailscale) Provision(ctx caddy.Context) error { } func (ts Tailscale) GetCertificate(ctx context.Context, hello *tls.ClientHelloInfo) (*tls.Certificate, error) { - ctx = context.WithValue(ctx, ClientHelloSNICtxKey, hello.ServerName) canGetCert, err := ts.canHazCertificate(ctx, hello) if err == nil && !canGetCert { return nil, nil // pass-thru: Tailscale can't offer a cert for this name |