|
|
@@ -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",
|