acme/autocert: clarify that multiple names are allowed
Run-TryBot: Brad Fitzpatrick
TryBot-Result: Gobot Gobot
@@ -24,7 +24,7 @@ func ExampleManager() {
m := &autocert.Manager{
Cache: autocert.DirCache("secret-dir"),
Prompt: autocert.AcceptTOS,
- HostPolicy: autocert.HostWhitelist("example.org"),
+ HostPolicy: autocert.HostWhitelist("example.org", "www.example.org"),
}
s := &http.Server{
Addr: ":https",
