File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,6 @@ func init() {
22
22
caddy .RegisterModule (HTTPCertGetter {})
23
23
}
24
24
25
- // For referencing the requested SNI server name.
26
- const ClientHelloSNICtxKey caddy.CtxKey = "client_hello_sni"
27
-
28
25
// Tailscale is a module that can get certificates from the local Tailscale process.
29
26
type Tailscale struct {
30
27
logger * zap.Logger
@@ -44,7 +41,6 @@ func (ts *Tailscale) Provision(ctx caddy.Context) error {
44
41
}
45
42
46
43
func (ts Tailscale ) GetCertificate (ctx context.Context , hello * tls.ClientHelloInfo ) (* tls.Certificate , error ) {
47
- ctx = context .WithValue (ctx , ClientHelloSNICtxKey , hello .ServerName )
48
44
canGetCert , err := ts .canHazCertificate (ctx , hello )
49
45
if err == nil && ! canGetCert {
50
46
return nil , nil // pass-thru: Tailscale can't offer a cert for this name
You can’t perform that action at this time.
0 commit comments