Skip to content

Commit 182538f

Browse files
dndungubradfitz
authored andcommitted
acme/autocert: clarify that multiple names are allowed
Change-Id: Ib5111388859b36c1989aad1a1948bd83ab01b7e0 Reviewed-on: https://go-review.googlesource.com/132328 Reviewed-by: Brad Fitzpatrick <[email protected]> Run-TryBot: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 614d502 commit 182538f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

acme/autocert/example_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func ExampleManager() {
2424
m := &autocert.Manager{
2525
Cache: autocert.DirCache("secret-dir"),
2626
Prompt: autocert.AcceptTOS,
27-
HostPolicy: autocert.HostWhitelist("example.org"),
27+
HostPolicy: autocert.HostWhitelist("example.org", "www.example.org"),
2828
}
2929
s := &http.Server{
3030
Addr: ":https",

0 commit comments

Comments
 (0)