Skip to content

Commit a22ba07

Browse files
committed
acme/autocert: update docs of HostWhitelist
1 parent 329d5cd commit a22ba07

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: acme/autocert/autocert.go

+3
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ type HostPolicy func(ctx context.Context, host string) error
6262
// HostWhitelist returns a policy where only the specified host names are allowed.
6363
// Only exact matches are currently supported. Subdomains, regexp or wildcard
6464
// will not match.
65+
//
66+
// Note that all hosts will be converted to lowercase via strings.ToLower so that
67+
// Manager.GetCertificate can handle mixedcase hosts correctly.
6568
func HostWhitelist(hosts ...string) HostPolicy {
6669
whitelist := make(map[string]bool, len(hosts))
6770
for _, h := range hosts {

0 commit comments

Comments
 (0)