We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 329d5cd commit a22ba07Copy full SHA for a22ba07
acme/autocert/autocert.go
@@ -62,6 +62,9 @@ type HostPolicy func(ctx context.Context, host string) error
62
// HostWhitelist returns a policy where only the specified host names are allowed.
63
// Only exact matches are currently supported. Subdomains, regexp or wildcard
64
// 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.
68
func HostWhitelist(hosts ...string) HostPolicy {
69
whitelist := make(map[string]bool, len(hosts))
70
for _, h := range hosts {
0 commit comments