mirror of
https://github.com/caddyserver/caddy.git
synced 2025-10-19 07:43:17 +00:00
Minor comments
This commit is contained in:
parent
9157051f45
commit
792fca40f1
2 changed files with 4 additions and 1 deletions
|
@ -66,7 +66,7 @@ func (cp ConnectionPolicies) TLSConfig(ctx caddy.Context) *tls.Config {
|
|||
// using ServerName to match policies is extremely common, especially in configs
|
||||
// with lots and lots of different policies; we can fast-track those by indexing
|
||||
// them by SNI, so we don't have to iterate potentially thousands of policies
|
||||
// (TODO: this map does not account for wildcards, see if this is a problem in practice?)
|
||||
// (TODO: this map does not account for wildcards, see if this is a problem in practice? look for reports of high connection latency with wildcard certs but low latency for non-wildcards in multi-thousand-cert deployments)
|
||||
indexedBySNI := make(map[string]ConnectionPolicies)
|
||||
if len(cp) > 30 {
|
||||
for _, p := range cp {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue