Implement custom cert selection policies; optimize matching for SNI

This commit is contained in:
Matthew Holt 2019-05-24 13:18:45 -06:00
parent 5a4a1421de
commit 210d0cf7f1
3 changed files with 109 additions and 20 deletions

View file

@ -11,7 +11,7 @@ type MatchServerName []string
func init() {
caddy2.RegisterModule(caddy2.Module{
Name: "tls.handshake_match.host",
Name: "tls.handshake_match.sni",
New: func() interface{} { return MatchServerName{} },
})
}